dosarkz/paypost
Composer 安装命令:
composer require dosarkz/paypost
包简介
The Paypost module for accepting payments by Kazpost
README 文档
README
The module for accepting payments by Kazpost for laravel 5 and high
- installation
- example
- license
Installation
composer require dosarkz/paypostphp artisan vendor:publish --provider="Dosarkz\PayPost\ServiceProviders\PayPostServiceProvider"- that's it.
Example
$payPost = PayPost::generateUrl([
'amount' => "sum of purchase",
'email' => "customeremail",
'language' => 'ru',
'currency' => 'KZT',
'type' => 'card',
'payment_webhook' => "here your url webhook use only working url (real)"
]);
if ($payPost->success) {
// todo white success instructions
$paymentId = $payPost->result->payment;
$paymentUrl = $payPost->result->url;
}
License
- MIT license
- Copyright 2018 ©
统计信息
- 总下载量: 314
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-12-13