gingdev / ipay
IPay API
1.0.1
2024-10-17 12:19 UTC
Requires
- eventsauce/object-hydrator: ^1.4
- nette/utils: ^4.0
- php-http/client-common: ^2.7
- php-http/httplug: ^2.4
- phpseclib/phpseclib: ^2.0
- symfony/dom-crawler: ^7.1
- symfony/var-exporter: ^7.1
Requires (Dev)
- nyholm/psr7: ^1.8
- pestphp/pest: ^2.34
- php-http/curl-client: ^2.3
- phpstan/phpstan: ^1.11
This package is not auto-updated.
Last update: 2024-11-22 04:26:50 UTC
README
<?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(); }