PHPackages                             ssesmaeeli/nextpaygateway - 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. ssesmaeeli/nextpaygateway

ActiveLibrary[Payment Processing](/categories/payments)

ssesmaeeli/nextpaygateway
=========================

This package is for dealing with nextpay.ir gateway.

16PHP

Since Feb 11Pushed 7y agoCompare

[ Source](https://github.com/SSEsmaeeli/NextpayGateway)[ Packagist](https://packagist.org/packages/ssesmaeeli/nextpaygateway)[ RSS](/packages/ssesmaeeli-nextpaygateway/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-payment-gateway
=======================

[](#laravel-payment-gateway)

Nextpay Payment Gateway for Laravel Framework

package's home : [nextpay payment gateway by laravel](http://nextpay.ir)

by this package we are able to connect to all Iranian bank with one unique API.

Please inform us once you've encountered [bug](https://github.com/SSEsmaeeli/NextpayGateway/issues) or [issue](https://github.com/SSEsmaeeli/NextpayGateway/issues) .

NextPay payment gateway for [Laravel](https://laravel.com/)
-----------------------------------------------------------

[](#nextpay-payment-gateway-for-laravel)

**Installation**:

STEP 1 : run

```
composer require ssesmaeeli/nextpaygateway

```

STEP 2 : Add `provider` and `facade` in config/app.php

```
'providers' => [
  ...
  SSEsmaeeli\NextpayGateway\NextpayServiceProvider::class, // setAmount(1200);
   $nextpay->token();
   $trans_id = $nextpay->getTransId();
   $request = $nextpay->getRequestURL();
   return view('nextpay::request', compact('trans_id', 'request'));

} catch (Exception $e) {

   	echo $e->getMessage();
}

```

In `price` method you should enter the price in Toman/تومان (ایران)

and in your callback :

```
try {

   $nextpay = new NextPay();
   $trans_id = Input::get('trans_id');
   $order_id = Input::get('order_id');
   $nextpay->setTransId($trans_id);
   $nextpay->setOrderId($order_id);
   $trans = $nextpay->getTransaction($trans_id, $order_id);
   $nextpay->setAmount($trans->price);
   $nextpay->setApiKey(config('gateway.nextpay.api_key', 'None'));
   $status = $nextpay->verify_request();
   switch ($status) {
       case 0:
           $status = "موفق";
           break;
       case -1:
           $status = "در انتظار واریز";
           break;
       default:
           $status = "ناموفق";
           break;
   }
   $trans_id = $nextpay->getTransId();
   return view('nextpay::callback', compact('order_id', 'trans_id', 'status'));

} catch (Exception $e) {

   echo $e->getMessage();
}

```

If you are interested to developing this package you can help us by these ways :

1. Improving documents.
2. Reporting issue or bugs.
3. Collaboration in writing codes and other banks modules.

This package is extended from PoolPort but we've changed some functionality and improved it .

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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/779b9c92f26fd3a03f381b104bb56ef40b0130c62c6f4b75704b7118b3c22401?d=identicon)[SSEsmaeeli](/maintainers/SSEsmaeeli)

---

Top Contributors

[![SSEsmaeeli](https://avatars.githubusercontent.com/u/30143856?v=4)](https://github.com/SSEsmaeeli "SSEsmaeeli (4 commits)")

### Embed Badge

![Health badge](/badges/ssesmaeeli-nextpaygateway/health.svg)

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

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