PHPackages                             ndps/laravel - 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/laravel

ActiveLibrary[Payment Processing](/categories/payments)

ndps/laravel
============

NTT DATA Payment Services Laravel Composer package

010PHP

Since Dec 5Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

NDPS-Dev/laravel
================

[](#ndps-devlaravel)

Official Laravel library for 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/laravel:dev-main
    ```
- If you are not using composer, download the latest release from the releases section. You should download the laravel.zip file from atomlite/laravel. And place in vendor folder.

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

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

- To handle the request use below function which will provide the request URL.

    ```
      public function payment()
     {
       include_once base_path('vendor/autoload.php');
       $transactionRequest = new \NDPS\TransactionRequest();

       /* Add your return URL */
       $ru = "http://127.0.0.1:8000/response";

       /*
       *Setting all values here
       */
       $transactionRequest->setLogin('192');
       $transactionRequest->setPassword("Test@123");
       $transactionRequest->setProductId("NSE");
       $transactionRequest->setAmount('50.55');
       $transactionRequest->setTransactionCurrency("INR");
       $transactionRequest->setTransactionAmount('50.55');
       $transactionRequest->setReturnUrl($ru);
       $transactionRequest->setClientCode('NAVIN');
       $transactionRequest->setTransactionId('0010');
       $transactionRequest->setCustomerName("Test Name");
       $transactionRequest->setCustomerEmailId("test@test.com");
       $transactionRequest->setCustomerMobile("9999999999");
       $transactionRequest->setCustomerBillingAddress("Mumbai");
       $transactionRequest->setCustomerAccount("639827");
       $transactionRequest->setReqHashKey("KEY123657234");
       $transactionRequest->seturl("https://paynetzuat.atomtech.in/paynetz/epi/fts");
       $transactionRequest->setRequestEncypritonKey("8E41C78439831010F81F61C344B7BFC7");
       $transactionRequest->setSalt("8E41C78439831010F81F61C344B7BFC7");

       $url = $transactionRequest->getPGUrl();
       echo "url:".$url;
       header("Location: $url");
      }
    ```
- To handle the response use below function which will return the final response array.

    ```
       public function response()
         {
          include_once base_path('vendor/autoload.php');
          $transactionResponse = new \NDPS\TransactionResponse();

          /*
          **Enter the keys provided by NDPS
          */
          $transactionResponse->setRespHashKey("KEYRESP123657234");
          $transactionResponse->setResponseEncypritonKey("8E41C78439831010F81F61C344B7BFC7");
          $transactionResponse->setSalt("8E41C78439831010F81F61C344B7BFC7");
          $arrayofdata = $transactionResponse->decryptResponseIntoArray($_POST['encdata']);

          /*
          **Signature Verification for response and reponse verification
          */
          $verification = $transactionResponse->validateResponse($arrayofdata, "KEYRESP123657234");
          if($verification){
    	// final logic
    	if($arrayofdata["f_code"] == "Ok"){
    	  echo "Transaction successful!";
    	}
    	elseif($arrayofdata["f_code"] == "C"){
    	  echo "Transaction Cancelled!";
    	}
    	else{
    	  echo "Transaction Failed!";
    	}
          }
          else{
    	echo "Transaction Failed!";
          }

           echo "Response Array:";
           print_r($arrayofdata);

        }
    ```
- Note: To handle above response as return URL we need defined method as post in routes/web.php file, also we need disable csrf validation for this response function edit following file app/Http/Middleware/VerifyCsrfToken.php

```
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
    /**
     * Indicates whether the XSRF-TOKEN cookie should be set on the response.
     *
     * @var bool
     */
    protected $addHttpCookie = true;
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        'response/'
    ];
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 (11 commits)")

### Embed Badge

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

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

###  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)
