🇲🇾 WooCommerce Integration

Integration Guide for WooCommerce users in Malaysia

Integration Guide

This integration guide consists of 4 mandatory steps:

  1. Download Woocomerce Plugin

  2. Install DOKU Plugin on WooCommerce

  3. Configure DOKU Payment in WooCommerce

  4. Set Up Payment Notification on DOKU Dashboard

Step 1: Download WooCommerce Plugin

Download the Zip file from the Woocommerce Integration page

  1. Login to DOKU dashboard

  2. Go to Integration from the side bar, choose Woocomerce

  3. Click on Download button

Step 2: Install DOKU Plugin on WooCommerce

Before installing DOKU Payment, ensure that WooCommerce is already installed and activated on your WordPress site.

  1. Go to Plugins from the sidebar then click on Add Plugin -> Upload Plugin

  2. Upload the Zip File (from step 1) -> Install Now - > Activate

Step 3: Configure DOKU Payment in WooCommerce

  1. Go to WooCommerce (in sidebar) > Settings > Payments tab.

  2. Make sure DOKU Integration and DOKU Payments are enabled and click Manage on DOKU Integration

  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 credential 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)

For Malaysia sandbox account, register at DOKU Sandbox Registration

Step 4: Set Up Payment Notification on DOKU Dashboard

  1. Copy the Notification URL inside the DOKU Integration Settings (Woocomerce Dashboard)

  2. Head to your DOKU dashboard

    1. Sandbox or Production

  3. Go to settings -> Webhook - > create Webhook

  4. Paste the Notification URL in the URL section

  5. Choose the payment method you want to be configured

  6. Click Save

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