Install the PHP SDK
The SDK signs requests, retries on network errors and parses API responses.
Requirements
- PHP 8.2 or later;
- the
curlandjsonextensions; - a test key from your dashboard.
Installation
Bash
composer require acme/pay-sdk
First request
pay.php
$client = new Acme\Pay\Client(getenv('ACME_TEST_KEY'));
$payment = $client->payments->create(['amount' => '1500.00', 'currency' => 'RUB']);