For the complete documentation index, see llms.txt. This page is also available as Markdown.

🇲🇾 WooCommerce Integration

Integration Guide for WooCommerce users in Malaysia

Integration Guide

This integration guide consists of 4 mandatory steps:

  1. Download WooCommerce 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. Log in to your DOKU Dashboard

  2. Go to Integration from the side navigation bar, select WooCommerce

  3. Click Download button

Or directly download the file using the below link:

Version 1.3.32

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

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

  2. Create a DOKU Sandbox Malaysia account using this link

Step 4: Set Up Payment Notification on DOKU Dashboard

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

  2. Log in to your DOKU Dashboard

    • For testing transactions, visit DOKU Sandbox

    • For processing real transactions, visit DOKU Dashboard

  3. Navigate to Settings > Webhook, and create webhook

    1. Description: WooCommerce Webhook

    2. URL Endpoint: Notification URL from step 1

    3. Payment Channel: Select all payment methods.

  4. If you have Card payments activated, Navigate to Settings > Credit Card

    1. Go to Payment Configuration tab

    2. Paste the Notification URL in the Payment Notification URL section

    3. Click Submit

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

Was this helpful?