PHPackages                             ajaygawade/testaipay - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. ajaygawade/testaipay

ActiveLibrary[Testing &amp; Quality](/categories/testing)

ajaygawade/testaipay
====================

Testing

02PHP

Since Mar 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AJX124/testaipay)[ Packagist](https://packagist.org/packages/ajaygawade/testaipay)[ RSS](/packages/ajaygawade-testaipay/feed)WikiDiscussions main 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/corephp:dev-main

    ```
- If you are not using composer, download the latest release from the releases section. You should download the aipay-corephp.zip file from atomlite/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

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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/7771b2d37e1f7e25a982b093829d033c8770ebcca13ce52dda9e4b8c589421c3?d=identicon)[AJX124](/maintainers/AJX124)

---

Top Contributors

[![AJX124](https://avatars.githubusercontent.com/u/74466843?v=4)](https://github.com/AJX124 "AJX124 (7 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/ajaygawade-testaipay/health.svg)

```
[![Health](https://phpackages.com/badges/ajaygawade-testaipay/health.svg)](https://phpackages.com/packages/ajaygawade-testaipay)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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