two-faces / cloud-payments-client
CloudPayments.ru 客户端
0.1.03
2024-04-01 14:41 UTC
Requires
- php: >=5.5
This package is not auto-updated.
Last update: 2024-09-30 16:55:11 UTC
README
CloudPayments 支付服务客户端。[CloudPayments](http://cloudpayments.ru/)。允许从 PHP 代码中调用 [CloudPayments API](http://cloudpayments.ru/Docs/Api)。
安装
composer require troytft/cloud-payments-client
使用
$client = new \CloudPayments\Manager($publicKey, $privateKey); $transaction = $client->chargeToken($amount, $currency, $accountId, $cardToken); print $transaction->getId();