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.
- 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.
- Copy file
phpunit.xml.dist
tophpunit.xml
and replace the of Doku credentials with your own.
- 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.