digipeyk / payment-client
PHP client for digipeyk payment
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/digipeyk/payment-client
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: 2025-10-06 12:07:46 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.