PHP code example of gingdev / ipay
1. Go to this page and download the library: Download gingdev/ipay 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/ */
gingdev / ipay example snippets
declare(strict_types=1);
use IPay\Enums\TransactionType;
use IPay\IPayClient;
ch sử giao dịch hôm nay
$transactions = $session->transactions()
->type(TransactionType::CREDIT)
->today();
foreach ($transactions as $transaction) {
echo $transaction->remark.PHP_EOL;
}
} catch (Throwable $e) {
echo $e->getMessage();
}