Documentation

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?

  1. Install the python server.

  2. Use below commands to install pycryptodome and requests package

    • Install pycryptodome for encryption and decryption
    pip install pycryptodome
    
    • Install requests for rest API calling
    pip install requests
    
  3. Modify the request.py file

  • Change the configuration details like merchId, password, product etc.
  • Configure authurl and atomcheckout.js according to UAT and Production environments.
  1. Change the keys provided by NDPS in AESCipher.py

  2. To handle the response use response.py

How to use?

  1. Click on Pay Now button, which will open the NTTDATA Payment Gateway.

  2. 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.