Python
Introducing the Python integration for NTT DATA Payment Services India, a powerful solution designed to streamline your payment processing needs. This integration enables seamless incorporation of the NTTDATA Payment Gateway into your Python applications, providing a secure and efficient way to handle transactions. With easy setup and comprehensive features, you can start accepting payments quickly and enhance your application with robust payment solutions.
What are the Prerequisites?
- UAT MID and keys provided by the NDPS team
How to install?
Install the python server.
Use below commands to install pycryptodome and requests package
- Install
pycryptodomefor encryption and decryption
pip install pycryptodome- Install
requestsfor rest API calling
pip install requests- Install
Modify the request.py file
- Change the configuration details like merchId, password, product etc.
- Configure
authurlandatomcheckout.jsaccording to UAT and Production environments.
Change the keys provided by NDPS in
AESCipher.pyTo handle the response use
response.py
How to use?
Click on
Pay Nowbutton, which will open the NTTDATA Payment Gateway.When the transaction is completed, you will get the response on your return url in this case
response.py
Download
Download the latest nttdatapay-python.zip file from the releases section on GitHub.