Skip to main content

A Django app for payment purpose in Nepal

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paradox_pay-0.0.13.tar.gz (94.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page