alive2212 / laravel-parsian-payment
This is Parsian bank payment package for laravel developers
Requires
Requires (Dev)
README
This is Parsian Bank IPG Payment Package that work with soap services. This package contain from:
-
Routes (init payment & confirm payment)
-
Controller
-
Job (to dispatch when any payment confirmed)
-
Setting
Installation
Via Composer
$ composer require alive2212/laravel-parsian-payment
add following app.php in config file
'providers'=>[ ... /* * add parsian payment service provider */ Alive2212\LaravelParsianPayment\LaravelParsianPaymentServiceProvider::class, ... ]
php artisan vendor:publish --tag laravel-parsian-payment.config php artisan vendor:publish --tag laravel-parsian-payment.lang php artisan vendor:publish --tag laravel-parsian-payment.job php artisan parsian_payment:init
Add following into one service provider like 'RouteServiceProvider'
LaravelParsianPayment::routes(null,['middleware'=>'web']);
if you not use any default middleware for this package routes you can just use following
LaravelParsianPayment::routes();
Usage
After installation you can see following routs with php artisan route:list
POST: {your base url}/api/v1/custom/alive/parsian/payment/init
POST: {your base url}/api/v1/custom/alive/parsian/payment/confirm
RESOURCE (CRUD Full): {your base url}/api/v1/alive/parsian/payment
At first you should use init
api for init payment for use it put following into Header
- Authorization
- Accept
And put following into body of request
- amount:{int value}
You should set callback
URL into laravel-parsian-payment like following
'callback' => '{{base-url}}/api/v1/custom/alive/parsian/payment/confirm'
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.