ssi/aggrepaypayment
Composer 安装命令:
composer require ssi/aggrepaypayment
包简介
Integrate Aggrepay Payments easily with this package.
README 文档
README
aggrepaypayment
#Open the config/app.php and add this line in providers section.
ssi\aggrepaypayment\AggrepayPaymentServiceProvider::class,
#Add this line in the aliases section.
'Aggrepay' => ssi\aggrepaypayment\AggrepayFacade::class
#Publish vendor.
php artisan vendor:publish
$params = [
'order_id' => 'test0013',
'amount' => '20.00',
'currency' => 'INR',
'description' => 'test',
'name' => 'akii',
'email' => 'akhiiw.office@gmail.com',
'phone' => '8698330550',
'city' => 'Nagpur',
'country' => 'IND',
'zip_code' => '440015',
'return_url' => url('/payStatus')
];
Aggrepay::startPayment($params)->send();
//Returns response
$result = Aggrepay::aggrepayData($_POST);
//Returns an json of all the parameters of use in the transaction
echo json_encode($result->getParams());
统计信息
- 总下载量: 136
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-16