2017 © Pedro Peláez
 

library gateway

A Laravel package for connecting to all Iraninan payment gateways

image

skings/gateway

A Laravel package for connecting to all Iraninan payment gateways

  • Monday, May 21, 2018
  • by saman1995
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 67 Forks
  • 0 Open issues
  • 37 Versions
  • 0 % Grown

The README.md

package's home : larabook.ir, (*1)

by this package we are able to connect to all Iranian bank with one unique API., (*2)

this fork customized for MongoDB., (*3)

( This Package is now compatible with both 4.* and 5.* versions of Laravel ), (*4)

Please inform us once you've encountered bug or issue ., (*5)

Available Banks: 1. MELLAT 2. SADAD (MELLI) 3. SAMAN 4. PARSIAN 5. PASARGAD 6. ZARINPAL 7. PAYPAL (New) 8. ASAN PARDAKHT (New), (*6)

9. PAY.IR (New) (to use : new \Payir())

Installation:, (*7)

Run below statements on your terminal :, (*8)

STEP 1 :, (*9)

composer require skings/gateway

STEP 2 : Add provider and facade in config/app.php, (*10)

'providers' => [
  ...
  Larabookir\Gateway\GatewayServiceProvider::class, // <-- add this line at the end of provider array
],


'aliases' => [
  ...
  'Gateway' => Larabookir\Gateway\Gateway::class, // <-- add this line at the end of aliases array
]

Step 3:, (*11)

php artisan vendor:publish --provider=Larabookir\Gateway\GatewayServiceProvider

Step 4:, (*12)

php artisan migrate

Configuration file is placed in config/gateway.php , open it and enter your banks credential:, (*13)

You can make connection to bank by several way (Facade , Service container):, (*14)

try {

   $gateway = \Gateway::make(new \Mellat());

   // $gateway->setCallback(url('/path/to/callback/route')); You can also change the callback
   $gateway
        ->price(1000)
        // setShipmentPrice(10) // optional - just for paypal
        // setProductName("My Product") // optional - just for paypal
        ->ready();

   $refId =  $gateway->refId(); // شماره ارجاع بانک
   $transID = $gateway->transactionId(); // شماره تراکنش

  // در اینجا
  //  شماره تراکنش  بانک را با توجه به نوع ساختار دیتابیس تان 
  //  در جداول مورد نیاز و بسته به نیاز سیستم تان
  // ذخیر کنید .

   return $gateway->redirect();

} catch (\Exception $e) {

    echo $e->getMessage();
}

you can call the gateway by these ways : 1. Gateway::make(new Mellat()); 1. Gateway::mellat() 2. app('gateway')->make(new Mellat()); 3. app('gateway')->mellat();, (*15)

Instead of MELLAT you can enter other banks Name as we introduced above ., (*16)

In price method you should enter the price in IRR (RIAL), (*17)

and in your callback :, (*18)

try { 

   $gateway = \Gateway::verify();
   $trackingCode = $gateway->trackingCode();
   $refId = $gateway->refId();
   $cardNumber = $gateway->cardNumber();

    // تراکنش با موفقیت سمت بانک تایید گردید
    // در این مرحله عملیات خرید کاربر را تکمیل میکنیم

} catch (\Larabookir\Gateway\Exceptions\RetryException $e) {

    // تراکنش قبلا سمت بانک تاییده شده است و
    // کاربر احتمالا صفحه را مجددا رفرش کرده است
    // لذا تنها فاکتور خرید قبل را مجدد به کاربر نمایش میدهیم

    echo $e->getMessage() . "<br>";

} catch (\Exception $e) {

    // نمایش خطای بانک
    echo $e->getMessage();
}  

If you are intrested to developing this package you can help us by these ways :, (*19)

  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 ., (*20)

The Versions

21/05 2018

dev-master

9999999-dev https://github.com/SamanFekri/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi
by Saman Fekri

mongodb laravel payment pay gateway paypal bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport asan-pardakht pay-ir

21/05 2018

dev-dev

dev-dev https://github.com/SamanFekri/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi
by Saman Fekri

mongodb laravel payment pay gateway paypal bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport asan-pardakht pay-ir

28/02 2018

3.3.3

3.3.3.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway paypal bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport asan-pardakht pay-ir

26/02 2018

3.3.2

3.3.2.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway paypal bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport asan-pardakht pay-ir

26/02 2018

3.3.1

3.3.1.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway paypal bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport asan-pardakht pay-ir

25/02 2018

3.3

3.3.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway paypal bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport asan-pardakht pay-ir

25/04 2017

3.2.6

3.2.6.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

24/04 2017

3.2.5

3.2.5.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

08/04 2017

3.2.4

3.2.4.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

05/04 2017

3.2.3

3.2.3.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

05/04 2017

3.2.2

3.2.2.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

05/04 2017

3.2.1

3.2.1.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

05/04 2017

3.2

3.2.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

04/04 2017

3.1

3.1.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman
by Amir Khorsandi

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

27/12 2016

3.0

3.0.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

10/11 2016

2.9.9

2.9.9.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

05/11 2016

2.9.8

2.9.8.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

13/09 2016

2.9.7

2.9.7.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

05/08 2016

2.9.6

2.9.6.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

04/08 2016

2.9.5

2.9.5.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

19/07 2016

2.9.4

2.9.4.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

11/07 2016

2.9.3

2.9.3.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

20/05 2016

2.9.2

2.9.2.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

20/05 2016

2.9.1

2.9.1.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

20/05 2016

2.9

2.9.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

17/05 2016

2.8

2.8.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

17/05 2016

2.7

2.7.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

17/05 2016

2.6

2.6.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

17/05 2016

2.5

2.5.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

07/05 2016

2.4

2.4.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

06/05 2016

2.3

2.3.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

laravel payment pay gateway bank iran zarinpal payline port saman meli ipay shaparak pardakht dargah mellat pasargad parsian sadad jahanpay iranian-banks persian-banks poolport

06/05 2016

2.2

2.2.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

05/05 2016

2.1

2.1.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

04/05 2016

2.0

2.0.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

by Hamed Pakdaman

02/05 2016

1.2

1.2.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

02/05 2016

1.1

1.1.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman

02/05 2016

1.0

1.0.0.0 https://github.com/larabook/gateway

A Laravel package for connecting to all Iraninan payments gateways

  Sources   Download

MIT

The Requires

 

by Hamed Pakdaman