pavlo-dot-dev/popolni-club

v1.0.0 2023-08-22 06:31 UTC

This package is auto-updated.

Last update: 2025-03-22 09:54:54 UTC


README

Требования

  • PHP 8.0 или выше
  • Composer
  • GuzzleHTTP

Composer

composer require pavlo-dot-dev/popolni-club

Примеры

Авторизация

$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());