Last updated:
0 purchases
paradoxpay 0.0.15
paradox_pay
Integrate Esewa and Khalti for payment
project_description
Explore the docs »
Report Bug
Request Feature
Table of Contents
About The Project
Built With
Getting Started
Prerequisites
Installation
Usage
Features
Contributing
License
Contact
About The Project
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
Django
Bootstrap
Esewa
JQuery
(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
Clone the repo
https://github.com/PrinceSingh-123/paradox_pay.git
Install python packages
pip install paradox-pay
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!
Fork the Project
Create your Feature Branch (git checkout -b feature/AmazingFeature)
Commit your Changes (git commit -m 'Add some AmazingFeature')
Push to the Branch (git push origin feature/AmazingFeature)
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 - [email protected]
Project Link: https://github.com/PrinceSingh-123/paradox_pay
(back to top)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.