Download the PHP package parsisolution/gateway without Composer
On this page you can find all versions of the php package parsisolution/gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download parsisolution/gateway
More information about parsisolution/gateway
Files in parsisolution/gateway
Package gateway
Short Description A Laravel package for connecting to all Iraninan payment gateways
License MIT
Homepage https://github.com/parsisolution/gateway
Informations about the package gateway
Parsisolution Gateway
Iranian Payment Gateways
This library is inspired by laravel Socialite and PoolPort and larabook/gateway
Available PSPs (Bank):
- Beh Pardakht (
MELLAT
) - SEP (
SAMAN
) - SADAD (
MELLI
) - PEC (
PARSIAN
) - PEP (
PASARGAD
) - Novin Pardakht (
EN Bank
, also known asEghtesad Novin Bank
) - IranKish
- Sepehr
- Asan Pardakht
- Fanava Card
Available 3rd-parties:
- Vandar
- Pay.ir
- ZarinPal
- Zibal
- JibIt
- PayPing
- IDPay
- Jibimo
- NextPay
- DigiPay
- SizPay
- Shepa
- AqayePardakht
- IranDargah
- Bahamta
- ParsPal
- BitPay
- Milyoona
- Sepal
- TiPoul
- SabaPay
- YekPay
Install
Step 1:
Step 2:
Step 3:
Step 4:
Change .env
values or config/gateways.php
fields to your specifications.
Usage
Step 1:
Get instance of Gateway from Gateway Facade Gateway::of('mellat')
Or create one yourself: new Mellat(app(), config('gateways.mellat'));
Or
Step2:
Then to create new payment transaction you can do like this:
Step3:
And in callback
Appendix 1:
You can easily add your own gateway with no effort in your own code base by extending
\Parsisolution\Gateway\AbstractProvider
class
and then add snippet code below to your controller's constructor
after that you can use added gateway in controller's methods like other gateways:
All versions of gateway with dependencies
ext-json Version *
ext-soap Version *
ext-curl Version *
illuminate/contracts Version >=5.4
illuminate/http Version >=5.4
illuminate/view Version >=5.4
illuminate/support Version >=5.4
illuminate/database Version >=5.4