troytft/cloud-payments-client

CloudPayments.ru 客户端

0.1.0 2018-12-28 12:03 UTC

This package is auto-updated.

Last update: 2024-09-20 02:03:22 UTC


README

CloudPayments 支付服务 的客户端。允许使用 PHP 代码调用 CloudPayments API

安装

composer require troytft/cloud-payments-client

使用

$client = new \CloudPayments\Manager($publicKey, $privateKey);
$transaction = $client->chargeToken($amount, $currency, $accountId, $cardToken);

print $transaction->getId();