digipeyk/payment-client

PHP client for digipeyk payment

0.0.1 2017-06-21 10:06 UTC

This package is auto-updated.

Last update: 2024-04-06 08:52:30 UTC


README

See the ManualTest class.

Objects

  1. Invoice
  2. Wallet
  3. GatewayTransaction
  4. Wallet

Exceptions

If something wrong happen when calling an API function using the PaymentClient class, an exception of type PaymentException will be raised. Be prepared to catch the exception and take the appropriate actions.

Tests

Before running test, putenv a valid OAUT_TOKEN in tests/.env.php. The tests are compatible with server's test seeds run by the following command:

php artisan db:seed --class TestDatabaseSeeder

Feel free to overwrite the environment variables defined in phpunit.xml if you desire.