dosarkz / paypost
此包的最新版本(dev-master)没有提供许可证信息。
Kazpost 支付模块
dev-master
2018-12-13 15:53 UTC
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-09-19 21:05:36 UTC
README
为laravel 5及更高版本提供Kazpost支付模块的模块
- 安装
- 示例
- 许可证
安装
composer require dosarkz/paypost
php artisan vendor:publish --provider="Dosarkz\PayPost\ServiceProviders\PayPostServiceProvider"
- 这就完成了。
示例
$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;
}
许可证
- MIT许可证
- 版权所有 2018 ©