andrejro2 / comgate-client
Comgate 客户端包装器
1.12
2024-07-17 21:22 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: >=6.3
Requires (Dev)
- phpunit/phpunit: 6.5.*
This package is auto-updated.
Last update: 2024-09-17 21:50:54 UTC
README
Comgate API 客户端
Comgate API 客户端包装器
此包允许您使用 Comgate API 创建支付并获取重定向 URL 供客户使用
要求
- PHP 7.0 或更高版本
- guzzlehttp/guzzle
安装
$ composer require renat-magadiev/comgate-client
基本用法
use Comgate\Client; use Comgate\Request\CreatePayment; $client = new Client('merchant', true, 'secret'); $createPayment = new CreatePayment(1000, 'orderId', 'test@test.cz', 'Product name'); $createPaymentResponse = $client->send($createPayment); $redirectUrl = $createPaymentResponse->getRedirectUrl();
CreatePayment
类具有与 Comgate 文档 中描述相同的属性