🇮🇩 WooCommerce Integration

Integration Guide for WooCommerce users in Indonesia

Integration Guide

This integration guide consists of 3 mandatory steps:

  1. Install DOKU Plugin on WooCommerce

  2. Configure DOKU Payment in WooCommerce

  3. Set Up Payment Notification on DOKU Dashboard

Step 1: Install DOKU Plugin on WooCommerce

  1. Log in to your Wordpress Dashboard

  2. Navigate to Plugins > Add New Plugin

  3. Search for DOKU Payment, then click Install Now

Step 2: Configure DOKU Payment in WooCommerce

  1. Go to WooCommerce > Settings > Payments tab

  2. Make sure DOKU-Checkout and DOKU General-Configuration are enabled, then click Manage on DOKU General-Configuration.

  3. Configure the following required fields:

    • Enable DOKU: Checkbox must be ticked

    • Environment

      • For testing transactions, select Sandbox

      • For processing real transactions, select Production

    • Credential

      • Sandbox Client ID: Client ID retrieved from DOKU Sandbox

      • Sandbox Secret Key: Secret Key retrieved from DOKU Sandbox

      • Production Client ID: Client ID retrieved from DOKU Dashboard

      • Production Secret Key: Secret Key retrieved from DOKU Dashboard

      • Enter the Client ID and Secret Key that match the selected environment. Leave the fields for other environments empty.

    • Expiry Time: Checkout page expiry time in minutes

    • Abandoned Checkout: Checkout link can be extended past expiry time if toggled on

    • Duration Abandoned Checkout: Maximum time the checkout link stays active after expiration

Visit API Keys for instructions on how to retrieve integration credentials (Client ID and Secret Key)

Step 3: Set Up Payment Notification on DOKU Dashboard

  1. Copy the Notification URL from the WooCommerce settings (DOKU-General Configuration)

  2. Log in to your DOKU Dashboard

  3. Navigate to Settings > Payments Settings, then go to each payment method settings page

  1. Set up the payment notification URL for each payment method that you have activated using the notification URL that you have copied earlier from the WooCommerce settings. Visit Webhook / Payment Notification for detailed instructions

Once payment notification has been configured, you can start accepting payments with DOKU.

You can use the ....doku/notification endpoint for all payment methods (including QRIS) if you are using WooCommerce version 1.3.26 and above.

Last updated