wildan99/global-pay
最新稳定版本:0.7
Composer 安装命令:
composer require wildan99/global-pay
包简介
GlobalPay bundle
README 文档
README
Installation
Install the package
composer req wildan99/global-pay
Add to config/bundles.php
Daniil\GlobalPayBundle\GlobalPayBundle::class => ['all' => true],
Copy routes
/vendor/wildan99/global-pay/config/routes/global_pay.yaml to config/routes/global_pay.yaml
Run in console
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate --no-interaction
Add next lines to your .env file
###> GlobalPay ### GLOBAL_PAY_URL=<get it in GlobalPay> GLOBAL_PAY_AUTH_URL=<get it in GlobalPay> GLOBAL_PAY_SERVICE_ID=<get it in GlobalPay> GLOBAL_PAY_CLIENT_ID=<get it in GlobalPay> GLOBAL_PAY_GRANT_TYPE=<get it in GlobalPay> GLOBAL_PAY_SCOPE=<get it in GlobalPay> GLOBAL_PAY_CLIENT_SECRET=<get it in GlobalPay> GLOBAL_PAY_USERNAME=<get it in GlobalPay> GLOBAL_PAY_PASSWORD=<get it in GlobalPay> ###< GlobalPay ###
How to use
You need to use this service in construct method of class
Example of simple using
class MyClass { public function __construct(private \Daniil\GlobalPayBundle\Service\Client $client) { } public function prepare(): void { $this->client->prepare(new PrepareRequest(shopTransactionId: 'test', sum: 1000, currency: Currency::UZS, description: '')) } }
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-27