O2O Overview

Jokul provides various payment channels. One of the most used by our merchants is Online to Offline. By using this payment channels, your customer can pay their order through offline counters and Jokul will notify you once the payment is completed by your customer. Jokul has partnered with various partners to help you provide many payment options for your customers.

Integration steps

Here is the overview how you integrate O2O:

  1. Generate payment code
  2. Display payment code
  3. Acknowledge payment result
Jokul Direct - O2O Sequence DiagramJokul Direct O2O Aggregator Merchant Flow

1. Generate payment code

To generate payment code, you will need to hit this API through your Backend:

API Request

API endpoint (Sandbox)https://api-sandbox.doku.com/{{channel-name}}/{{version}}/payment-code
API endpoint (Production)https://api.doku.com/{{channel-name}}/{{version}}/payment-code

You need to change the {{channel-name}} and {{version}} accordingly based on what payment channel you wish. Here is the list:

Name{{channel-name}}Current Version
Alfa Groupalfa-online-to-offlinev2

Every object naming in our O2O APIs are standarized and have their own customization to ensure easy integration. Therefore, you can learn more about how to integrate to each of them by clicking the link above.

2. Display payment code

You can display the payment code to your customer by using online_to_offline_info.payment_code that you retrieved from the API response.

3. Acknowledge payment result

After the payment is being made by your customer, Jokul will send HTTP Notification to your defined Notification URL. Learn how to handle the notification from Jokul:

What's next?

You can learn more about how to integrate to each payment channels you wish by clicking the menu on the sidebar.