Download the PHP package ohansyah/jokul-php-library without Composer
On this page you can find all versions of the php package ohansyah/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
This is fork of Jokul PHP Library
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 => Channel Name
- BCA =
bca-virtual-account
- Mandiri =
mandiri-virtual-account
- Bank Syariah Indonesia (BSI)=
bsm-virtual-account
- DOKU =
doku-virtual-account
- BRI =
bri-virtual-account
- CIMB =
cimb-virtual-account
- Permata =
permata-virtual-account
- BNI =
bni-virtual-account
- Danamon =
danamon-virtual-account
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.
Virtual Account
After preparing the payment request above, call this function to generate BCA 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.
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].