2017 © Pedro Peláez
 

library gateway

A Laravel package for connecting to all Iraninan payment gateways

image

aries/gateway

A Laravel package for connecting to all Iraninan payment gateways

  • Monday, November 13, 2017
  • by iMohammadd
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

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

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

Available Banks: 1. MELLAT 2. SADAD (MELLI) 3. SAMAN 3. PARSIAN 4. PASARGAD 5. ZARINPAL 6. ~~JAHANPAY~~ (Disabled) 7. ~~PAYLINE~~ (Disabled), (*3)


Installation:, (*4)

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

STEP 1 :, (*6)

composer require aries/gateway

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

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


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

Step 3:, (*8)

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

Step 4:, (*9)

php artisan migrate

Important, (*10)

You need add Aries/LaravelSetting's ServiceProvider and Facade to config/app.php file, (*11)

Usage, (*12)

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

try {

   $gateway = \Gateway::make(new \Mellat());
   // $gateway->setCallback(url('/path/to/calback/route')); You can also change the callback
   $gateway->price(1000)->ready();
   $refId =  $gateway->refId();
   $transID = $gateway->transactionId();

   // Your code here

   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();, (*14)

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

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

and in your callback :, (*17)

try { 

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

   // Your code here

} catch (Exception $e) {

   echo $e->getMessage();
}  

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

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

a fork from larabook/gateway, (*20)

The Versions

13/11 2017

dev-master

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

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

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/11 2017

v0.1.3

0.1.3.0 https://github.com/imohammadd/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

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

12/11 2017

v0.1.2

0.1.2.0 https://github.com/imohammadd/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

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

12/11 2017

v0.1.1

0.1.1.0 https://github.com/imohammadd/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

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/11 2017

v0.1

0.1.0.0 https://github.com/imohammadd/gateway

A Laravel package for connecting to all Iraninan payment gateways

  Sources   Download

MIT

The Requires

 

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