digipeyk / payment-client
PHP client for digipeyk payment
0.0.1
2017-06-21 10:06 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-11-06 09:58:21 UTC
README
See the ManualTest class.
Objects
- Invoice
- Wallet
- GatewayTransaction
- 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.