Django
Presenting the Django integration for NTT DATA Payment Services India, an effective solution designed to simplify your payment processing tasks. This integration allows for the smooth incorporation of the NTTDATA Payment Gateway into your Django applications, ensuring secure and efficient transaction handling. With straightforward setup and a wide range of features, you can quickly start accepting payments and enhance your application with reliable payment solutions.
What are the Prerequisites?
- UAT MID and keys provided by the NDPS team
How to install?
Use the below commands to install pycryptodome and requests package
Install
pycryptodomefor encryption and decryptionpip install pycryptodomeInstall
requestsfor rest API callingpip install requests
Modify the
atompay/views.pyfile- Change the configuration details like merchId, password, product etc. in payview method.
- Configure
authurlaccording to UAT and Production environments. - This function includes the AUTH api call which will generate an atomtokenid.
- In resp(), change the response key provided by NDPS. This method will help to handle the response.
Add the
cacert.pemin atompay directory.Modify
atompay/templates/base.html- Configure the atomcheckout.js in accordance with UAT and Production environments.
- openpay() will open the NTT DATA Payment Gateway.
Modify
atompay/templates/response.html- response.html is used to get the response details after the transaction is completed.
Download
Download the latest nttdatapay-django.zip file from the releases section on GitHub.