troytft / cloud-payments-client
Client for CloudPayments.ru
Installs: 133 731
Dependents: 1
Suggesters: 0
Security: 0
Stars: 14
Watchers: 2
Forks: 18
Open Issues: 4
Requires
- php: >=5.5
README
Клиент для платежного сервиса 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();