kolesa-team/cloud-payments-client

Client for CloudPayments.ru

0.0.7 2016-09-30 10:05 UTC

This package is auto-updated.

Last update: 2024-10-17 17:30:29 UTC


README

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

Установка

composer require kolesa-team/cloud-payments-client

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

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

echo $transaction->getId();