PHPackages                             ndps/aipay-corephp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. ndps/aipay-corephp

ActiveLibrary[Payment Processing](/categories/payments)

ndps/aipay-corephp
==================

NTT DATA Payment Services AIPAY Core PHP Composer package

08PHP

Since Mar 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/NDPS-Dev/aipay-corephp)[ Packagist](https://packagist.org/packages/ndps/aipay-corephp)[ RSS](/packages/ndps-aipay-corephp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NDPS-Dev/aipay-corephp
======================

[](#ndps-devaipay-corephp)

Official AIPAY-CorePHP library of NTT DATA Payment Service.

Prerequisites
-------------

[](#prerequisites)

- A minimum of PHP 7.3 upto 8.1

Installation
------------

[](#installation)

- If your project using composer, run the below command ```
    composer require ndps/aipay-corephp dev-master

    ```
- If you are not using composer, download the latest release from the releases section. You should download the aipay-corephp.zip file from [NDPS-Dev/aipay-corephp](https://github.com/NDPS-Dev/aipay-corephp). And place in vendor folder.

How To Use It
-------------

[](#how-to-use-it)

- To open the payment popup, we need to call the JavaScript function **openPay()** from below JavaScript CDN.

    **UAT**

    ```

    ```

    **PROD**

    ```

    ```
- To call the **openPay()** we need to pass the below details.

    ```

          function openPay(){
              const options = {
              "atomTokenId": "11000000509998",
              "merchId": "65df273b53f05",
              "custEmail": "Test124@ndps.com",
              "custMobile": "9999999999",
              "returnUrl":"Your return URL for response handling"
              }
              let atom = new AtomPaynetz(options,'uat');
          }

    ```

    **custEmail:** EmailID of the customer.
    **custMobile:** Mobile Number of the customer.
    **returnUrl:** The URL where the response will be posted by payment gateway.
    **merchId:** Id of the merchant provided by NDPS.
    **atomTokenId:** Call the **getAtomtokenId()** to get the atomTokenId.

    > *Note: All five parameters are mandatory.*
- To call getAtomtokenId()

    ```
          include_once 'vendor/autoload.php';
          $transactionRequest = new \NDPS\TransactionRequest();

          $merchTxnId = uniqId();

          /*
          *Setting all values here
          */
          $transactionRequest->setMerchId("8952");  // Id provided by NDPS
          $transactionRequest->setPassword("Test@123");
          $transactionRequest->setMerchTxnId($merchTxnId);
          $transactionRequest->setMerchTxnDate("2021-09-04 20:46:00");
          $transactionRequest->setAmount("10.00");
          $transactionRequest->setProduct("NSE");
          $transactionRequest->setCustAccNo("213232323");
          $transactionRequest->setTxnCurrency("INR");
          $transactionRequest->setCustEmail("Test@ndps.com");
          $transactionRequest->setCustMobile("8989898989");
          $transactionRequest->setUDF1("udf1");
          $transactionRequest->setUDF2("udf2");
          $transactionRequest->setUDF3("udf3");
          $transactionRequest->setUDF4("udf4");
          $transactionRequest->setUDF5("udf5");
          $transactionRequest->setRequestEncypritonKey("A4476C2062FFA58980DC8F79EB6A799E");
          $transactionRequest->setResponseEncryptionKey("75AEF0FA1B94B3C10D4F5B268F757F11");
          $transactionRequest->setIsLive("false");

          //To get the atomTokenId
          $atomTokenId = $transactionRequest->getAtomtokenId();

    ```
- To handle the respose part on return URL.
- To handle the response use below function which will return the final response array.

    ```
         include_once 'vendor/autoload.php';
         $ndpsenc = new \NDPS\AtomAES();

         $respKey = "75AEF0FA1B94B3C10D4F5B268F757F11"; //Response Key provided by NDPS
         $data = $_POST['encData'];
         $decrypted = $ndpsenc->decrypt($data, $respKey, $respKey);
         $jsonData = json_decode($decrypted, true);
         print_r($jsonData);

    ```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/acab02896cfe5e4ea506d36e73d58706c970cb39c80bcf70ff14c475c8943a96?d=identicon)[atomlite](/maintainers/atomlite)

---

Top Contributors

[![NDPS-Dev](https://avatars.githubusercontent.com/u/6460167?v=4)](https://github.com/NDPS-Dev "NDPS-Dev (5 commits)")[![AJAY-NDPS](https://avatars.githubusercontent.com/u/114083046?v=4)](https://github.com/AJAY-NDPS "AJAY-NDPS (1 commits)")

### Embed Badge

![Health badge](/badges/ndps-aipay-corephp/health.svg)

```
[![Health](https://phpackages.com/badges/ndps-aipay-corephp/health.svg)](https://phpackages.com/packages/ndps-aipay-corephp)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
