Download the PHP package hamraa/lumen-payment without Composer
On this page you can find all versions of the php package hamraa/lumen-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hamraa/lumen-payment
More information about hamraa/lumen-payment
Files in hamraa/lumen-payment
Package lumen-payment
Short Description A Lumen package for connecting to payment gateways
License MIT
Homepage https://github.com/hamraa/lumen-payment
Informations about the package lumen-payment
lumen-payment
A Lumen package for connecting to payment gateways.
By this package we are able to connect to all Iranian bank with one unique API.
Please inform us once you've encountered bug or issue.
Available Banks:
- MELLAT
- SADAD (MELLI)
- SAMAN
- PARSIAN
- PASARGAD
- ZARINPAL
- PAYPAL (New)
- ASAN PARDAKHT (New)
-
PAY.IR (New) (to use : new \Payir())
Installation
First, install the package via Composer:
Copy the required files:
Then, in bootstrap/app.php
:
-
register the alias:
-
register the config file:
- register the service provider:
Now, run your migrations:
Done!
Usage
You can make connection to bank in several ways (Facade , Service container):
You can call the gateway by these ways :
- Gateway::make(new Mellat());
- Gateway::mellat()
- app('gateway')->make(new Mellat());
- app('gateway')->mellat();
Instead of MELLAT you can enter other banks Name as we introduced above .
In price
method you should enter the price in IRR (RIAL)
and in your callback :
Credits
This package is based on larabook/gateway (payment package for laravel) with some major change to compatible with Lumen framework and some code improvments.
Thanks
Special thanks to larabook team.
All versions of lumen-payment with dependencies
ext-soap Version *
ext-curl Version *
ext-simplexml Version *
ext-json Version *
ext-libxml Version *
nesbot/carbon Version *
paypal/rest-api-sdk-php Version *