Skip to content

troytft/cloud-payments-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudPayments PHP Client Library

Клиент для платежного сервиса CloudPayments. Позволяет обращаться к API CloudPayments из кода на PHP.

Установка

composer require troytft/cloud-payments-client

Использование

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

print $transaction->getId();