Documentation

CakePHP

The NTT DATA Payment Services India plugin for CakePHP offers a robust and secure solution aimed at incorporating seamless payment processing functionalities into your CakePHP applications. This plugin streamlines the management of online transactions, providing users with a smooth and efficient payment experience.

What are the prerequisites?

  • PHP 7.3 to 8.3
  • UAT MID and keys provided by the NDPS team

How to Install?

  1. Refer the code from src/Controller/AtomPayController.php to create the payment request and handle the response section.

  2. Add the cacert.pem file in bin folder.

  3. Call the createTokenId function to get the AtomtokenId.

  4. Replace the necessary data in index function(payurl, amount, login, password, productid, returnurl etc.)

  5. In templates/AtomPay folder in index.php we call the openPay() which will open the payment page.

  6. Configure the atomcheckout.js in accordance with UAT and Production environments. Also change the all necessary information.

Download Sample

Download latest CakePHP sample code from GitHub.