renat-magadiev/comgate-client
最新稳定版本:3.0
Composer 安装命令:
composer require renat-magadiev/comgate-client
包简介
Comgate client wrapper
README 文档
README
Comgate API client
Comgate API client wrapper
This package allow you to create payment using Comgate API and get redirect URL to your customers
Requirements
- PHP 7.0 or higher
- guzzlehttp/guzzle
Installation
$ composer require renat-magadiev/comgate-client
Basic usage
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 class has the same props as described in Comgate documentation
统计信息
- 总下载量: 18.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-10