Skip to main content

paradox_pay

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Integrate Esewa and Khalti for payment

project_description
Explore the docs »

Report Bug Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Features
  5. Contributing
  6. License
  7. Contact

About The Project

Product Name Screen Shot

This Reusable App is used for the esewa payment purposes. With the help of this project you can have lots of features such as create product,payment with esewa, Verify whether payment is successful or not, create recurrence subscription payment such as days, weeks, monthly and yearly basis.

(back to top)

Built With

(back to top)

Getting Started

You can setting up your project by copy up and running follow these simple example steps.

Features

  • Inbuilt product model for adding product
  • Esewa and Khalti are already implemented for Payment Purpose
  • Inbuilt subscription model for adding and manage subscription like weekly, monthly, yearly etc

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

python

Installation

  1. Clone the repo
    https://github.com/PrinceSingh-123/paradox_pay.git
    
  2. Install python packages
    pip install paradox-pay
    
  3. Install these requirements
    pip install django
    pip install requests
    pip install django-rest-framework
    pip install Pillow
    

(back to top)

Usage

To use esewa and khalti for django

  • Add app name in the settings.py file's INSTALLED_APPS
    'app',
    'shop',
    'rest-framework',
    
  • Include these paths in the root urls of your Project
     path("",include("app.urls")),
     path("shop/",include("shop.urls")),
    
  • Don't forget to add media and static url in urlspatteerns of your root urls
      from django.conf import settings
      from django.conf.urls.static import static
      urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
      urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    

Configuration

  • List all these stuff in the settings.py file for redirect, login and logout

    LOGIN_URL = 'login'
    LOGOUT_URL = 'logout'
    LOGIN_REDIRECT_URL = 'home/'
    LOGOUT_REDIRECT_URL = 'login'
    
  • Add these configuration in the settings.py file

    AUTH_USER_MODEL = 'app.User'
    VERIFY_EXPIRE_DAYS = 3
    
    MEDIA_URL = '/media/'
    MEDIA_ROOT = BASE_DIR/ 'media'
    
  • After listing all the configuration command following commands

    python manage.py makemigrations 
    python manage.py migrate
    python manage.py createsuperuser
    
  • After that please create Product and Subscription from Admin panel

  • Please create a free subscription plan before register or login to the app otherwise you will get error

  • Esewa merchant key for esewa and Khalti's public key and private key should be added in the admin panel

  • If you already added the merchant key ,public key and private key then you can update the key in the admin panel but don't delete the key and don't add two key from the admin panel otherwise you will get error

  • This system will work until you will update the esewa and khalti key incase of any changes in the key if you add new key from the admin panel otherwise you will get error

(back to top)

Features

  • Inbuilt product model for adding product
  • Cart is already implemented for adding product to cart
  • Esewa and Khalti are already implemented for Payment Purpose
  • Inbuilt subscription model for adding and manage subscription like weekly, monthly, yearly etc

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Developer - @Purusottam Adhikari - purusottamadhikari234@gmail.com

Project Link: https://github.com/PrinceSingh-123/paradox_pay

(back to top)

Metadata

Release files for paradox-pay 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paradox-pay 0.0.15
File Size Uploaded
paradox_pay-0.0.15.tar.gz 95.0 kB Details

Release files / paradox_pay-0.0.15.tar.gz

Download URL paradox_pay-0.0.15.tar.gz
Size 95.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3e03613ac825d0b5cce300057623e3908bc81a0e281b9f656952e7c0d8354f54
BLAKE2b-256 checksum
How to use checksums
0c986fc2a6ae1cf93b700e456c2323ec0d94d32b95f8a6e722a660a985fc1562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.0.15 This release

1 release file

0.0.14

1 release file

0.0.13

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page