PHP code example of pavlo-dot-dev / popolni-club
1. Go to this page and download the library: Download pavlo-dot-dev/popolni-club library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pavlo-dot-dev / popolni-club example snippets
$login = '...';
$password = '...';
$api = new PavloDotDev\PopolniClub\API($api);
$balance = $api->balance();
echo "Текущий баланс: {$balance->amount()} руб.";
$transactions = $api->transactions()->create(mt_rand(10000000, 999999999), 100, '79012345678')->send();
print_r($transactions[0]->statusText());