Package: paradox-pay
paradox_payIntegrate Esewa and Khalti for paymentproject_descriptionExplore the docs »Report BugRequest FeatureTable of ContentsAbout The ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageFeaturesContributingLicenseContactAbout The ProjectThis 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 WithDjangoBootstrapEsewaJQuery(back to top)Getting StartedYou can setting up your project by  copy up and running follow these simple example steps.FeaturesInbuilt product model for adding productEsewa and Khalti are already implemented for Payment PurposeInbuilt subscription model for adding and manage subscription like  weekly, monthly, yearly etcPrerequisitesThis is an example of how to list things you need to use the software and how to install them.pythonInstallationClone the repohttps://github.com/PrinceSingh-123/paradox_pay.gitInstall python packagespipinstallparadox-payInstall these requirementspipinstalldjango
pipinstallrequests
pipinstalldjango-rest-framework
pipinstallPillow(back to top)UsageTo use esewa and khalti for djangoAdd app name in the settings.py file's INSTALLED_APPS'app','shop','rest-framework',Include these paths in the root urls of your Projectpath("",include("app.urls")),path("shop/",include("shop.urls")),Don't forget to add media and static url in urlspatteerns of your root urlsfromdjango.confimportsettingsfromdjango.conf.urls.staticimportstaticurlpatterns+=static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)urlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)ConfigurationList all these stuff in the settings.py file for redirect, login  and logoutLOGIN_URL='login'LOGOUT_URL='logout'LOGIN_REDIRECT_URL='home/'LOGOUT_REDIRECT_URL='login'Add these configuration in the settings.py fileAUTH_USER_MODEL='app.User'VERIFY_EXPIRE_DAYS=3MEDIA_URL='/media/'MEDIA_ROOT=BASE_DIR/'media'After listing all the configuration command following commandspythonmanage.pymakemigrationspythonmanage.pymigrate
pythonmanage.pycreatesuperuserAfter that please create  Product and Subscription from Admin panelPlease create a free subscription plan before register or login to the app otherwise you will get errorEsewa merchant key for esewa  and Khalti's public key and private key should be added in the admin panelIf 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 errorThis 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)FeaturesInbuilt product model for adding productCart is already implemented for adding product to cartEsewa and Khalti are already implemented for Payment PurposeInbuilt subscription model for adding and manage subscription like  weekly, monthly, yearly etcSee theopen issuesfor a full list of proposed features (and known issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly 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 ProjectCreate 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)LicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.(back to top)ContactDeveloper -@Purusottam Adhikari-purusottamadhikari234@gmail.comProject Link:https://github.com/PrinceSingh-123/paradox_pay(back to top)