Download the PHP package shipu/php-aamarpay-payment without Composer
On this page you can find all versions of the php package shipu/php-aamarpay-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-aamarpay-payment
PHP Aamarpay Payment Gateway
php-aamarpay-payment is a PHP client for Aamarpay Payment Gateway API. This package is also support Laravel and Lumen.
Installation
Go to terminal and run this command
Wait for few minutes. Composer will automatically install this package for your project.
For Laravel
Below Laravel 5.5 open config/app
and add this line in providers
section
For Facade support you have add this line in aliases
section.
Then run this command
Configuration
This package is required three configurations.
- store_id = your store id in Aamarpay Payment Gateway.
- signature_key = your signature key in Aamarpay Payment Gateway
- sandbox =
true
for sandbox andfalse
for live - redirect_url = your application redirect url after
success
andfail
.
php-aamarpay-payment is take an array as config file. Lets services
For Laravel
This package is also support Laravel. For laravel you have to configure it as laravel style.
Go to config\aamarpay.php
and configure it with your credentials.
Usages
- Mandatory input field name
- tran_id // auto generate by this package
- cus_name
- cus_email
- cus_phone
- desc
- currency // auto generate by this package
- amount
Getting Payment Post Url
In PHP:
In Laravel:
Getting Hidden Input Field
Where Transaction id is random value. you can generate by yourself or follow bellow steps:
Default currency is BDT
. For change currency:
Generate Transaction Id
Checking Valid Response
Checking valid response with amount:
Where $request
will appear after post response.
In Blade
Getting Payment Post Url
Getting Hidden Input Field
Complete Post Button View
Example
Route
or
Controller Method
To Disable CSRF token
Open app/Http/Middleware/VerifyCsrfToken.php
and adding :
Credits
- Shipu Ahamed
- All Contributors
Support on Beerpay
Hey dude! Help me out for a couple of :beers:!