> For the complete documentation index, see [llms.txt](https://docs.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.doku.com/accept-payments/integration-tools/e-commerce-and-plugins/woocommerce-wordpress/woocommerce-integration.md).

# 🇮🇩 WooCommerce Integration

## 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

<figure><img src="/files/G5WA2MZyQuQxFB8Q4FZd" alt="" width="563"><figcaption></figcaption></figure>

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

<figure><img src="/files/BHcT48rQldl6193yWQA1" alt="" width="563"><figcaption></figcaption></figure>

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](https://sandbox.doku.com/bo/developer/api-keys?utm_source=docs)
     * **Sandbox Secret Key**: Secret Key retrieved from [DOKU Sandbox](https://sandbox.doku.com/bo/developer/api-keys?utm_source=docs)
     * **Production Client ID**: Client ID retrieved from [DOKU Dashboard](https://dashboard.doku.com/bo/developer/api-keys?utm_source=docs)
     * **Production Secret Key**: Secret Key retrieved from [DOKU Dashboard](https://dashboard.doku.com/bo/developer/api-keys?utm_source=docs)
     * <mark style="background-color:yellow;">Enter the Client ID and Secret Key that match the selected environment. Leave the fields for other environments empty.</mark>
   * **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

{% hint style="info" %}
Visit [Set Up Integration](/get-started/manage-business/set-up-integration.md#api-keys) for instructions on how to retrieve integration credentials (Client ID and Secret Key)
{% endhint %}

#### Step 3: Set Up Payment Notification on DOKU Dashboard

{% hint style="warning" %}
If you skip this step, your payment status on WooCommerce Dashboard will not be synced with DOKU Dashboard
{% endhint %}

<figure><img src="/files/hUa4QvyBGYjE97kz8oJO" alt="" width="563"><figcaption></figcaption></figure>

1. Copy the **Notification URL** from the WooCommerce settings (DOKU-General Configuration)
2. Log in to your **DOKU Dashboard**
   * For testing transactions, visit [DOKU Sandbox](https://sandbox.doku.com/bo/login?utm_source=docs)
   * For processing real transactions, visit [DOKU Dashboard](https://dashboard.doku.com/bo/dashboard?utm_source=docs)
3. Navigate to **Settings** > **Payments Settings**, then go to each payment method settings page

<figure><img src="/files/YVsMw43nyUpXbsrEse3h" alt="" width="563"><figcaption></figcaption></figure>

4. 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](/get-started/manage-business/set-up-integration/webhook-payment-notification.md#set-up-payment-notification) for detailed instructions

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

{% hint style="info" %}
You can use the `....doku/notification` endpoint for all payment methods (including QRIS) if you are using WooCommerce version **1.3.26** and above.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.doku.com/accept-payments/integration-tools/e-commerce-and-plugins/woocommerce-wordpress/woocommerce-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
