<?php
declare(strict_types=1);
use IPay\Enum\TransactionType;
use IPay\IPayClient;
require __DIR__.'/vendor/autoload.php';
try {
$session = IPayClient::fromCredentials('username', 'password');
$transactions = $session->transactions()
->type(TransactionType::CREDIT)
->today()
->getIterator();
foreach ($transactions as $transaction) {
echo $transaction->remark.PHP_EOL;
}
} catch (Throwable $e) {
echo $e->getMessage();
}
-
Notifications
You must be signed in to change notification settings - Fork 0
IPay API Client
thanhtran468/ipay
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|