Download the PHP package abdullahhafizh/jokul-php-library without Composer
On this page you can find all versions of the php package abdullahhafizh/jokul-php-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package jokul-php-library
Jokul PHP Library
Official PHP Library for Jokul. Visit https://jokul.doku.com for more information about the product and https://jokul.doku.com/docs for the technical documentation.
Table of Contents
- Payment Channels Supported
- Requirements
- Installation
- Usage
- Setup Configuration
- Virtual Account
- Handling HTTP Notification
- Sample Project
- Help and Support
Payment Channels Supported
Virtual Account
- BCA VA
- Bank Mandiri VA
- Bank Syariah Indonesia VA
- DOKU VA
Requirements
- PHP 7.2 or above
Installation
If you are using Composer, you can install via composer CLI:
or
add this require line to your composer.json
file:
example
and run composer install
on your terminal.
Usage
Setup Configuration
Get your Client ID and Shared Key from Jokul Back Office. Sandbox Jokul Back Office (for testing purpose) / Production Jokul Back Office (for real payments)
Setup your configuration:
If you want to hit to Sandbox, change to $DOKUClient->isProduction(false);
.
Virtual Account
First prepare your payment request data:
For further details of each parameter, please refer to our Jokul Docs.
BCA VA
After preparing the payment request above, call this function to generate BCA VA:
Bank Mandiri VA
After preparing the payment request above, call this function to generate Bank Mandiri VA:
Bank Syariah Indonesia VA
After preparing the payment request above, call this function to generate Bank Syariah Indonesia VA:
DOKU VA
After preparing the payment request above, call this function to generate DOKU VA:
Handling HTTP Notification
For async payment from these channels:
- Virtual Account
We will send the HTTP Notification after the payment made from your customers. Therefore, you will need to handle the notification to update the transaction status on your end. Here is the steps:
- Create notification URL (endpoint) on your server to receieve HTTP POST notification from Jokul. The notification will be sent to you whenever the transaction status is updated on Jokul side. The sample code available in Jokul Java Example.
- Setup the notification URL that you made to the Payment Configuration on Jokul Back Office. Sandbox Jokul Back Office (for testing purpose) / Production Jokul Back Office (for real payments)
- Test the payment with our Payment Simulator (for testing purpose)
Here is the sample of the notification endpoint that you need to setup:
For further reference, please refer to our Jokul Docs.
Sample Project
Please refer to this repo for the example project: Jokul PHP Example.
Help and Support
Got any issues? Found a bug? Have a feature requests? You can open new issue.
For further information, you can contact us on [email protected].