bungamata / doku-wrapper
A simple wrapper for the Doku implementation
v1.0.0
2022-12-18 04:03 UTC
Requires
- php: >=7.3
- ext-json: *
- guzzlehttp/guzzle: ^7.5
- psr/log: ^3.0
- symfony/http-foundation: ^6.2
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2024-10-29 18:17:57 UTC
README
The reason I made this library to make it easily integrate Doku into their project without the need to understand cryptography.
With this library, you only need to send the payload to Doku and this library will handle the cryptography for you.
How to use
- To get payment checkout URL, see file
DokuCheckoutV1PaymentUrlTest::testGet()
for how to use it. - To validate Doku notification, see file
DokuNotificationTest::testValidateFromRequest()
for how to use it.
How to test locally
- Copy file
phpunit.xml.dist
tophpunit.xml
and replace the of Doku credentials with your own.
TODO
- DokuNotification add function to validate notification using plain parameters without Request instance for broader support, currently it use Request instance which is only available in Laravel & Symfony framework.