> For the complete documentation index, see [llms.txt](https://developers.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.doku.com/accept-payments/doku-checkout/configuration/last-used-payment-channels.md).

# Last Used Payment Channels

### **Overview**

Last Used Payment Channel feature automatically displays a customer's most recently used payment channel on the Checkout Page. Instead of requiring returning customers to scroll through the full list of available channels, this feature surfaces their previous choice for a faster, more convenient checkout experience.

This feature is best suited for merchants with a high volume of repeat/returning customers.

***

### **How It Works**

1. Merchant sends `customer.id` in the checkout API request.
2. If a previous successful payment channel is found, it is automatically shown/prioritized on the Checkout Page.
3. If no history is found (e.g., first-time customer), the Checkout Page displays the default channel list as usual.

### **1. Enable via Dashboard**

1. Log in to the **DOKU Dashboard**
2. Navigate to the Checkout Page settings
3. Locate the **Last Used Payment Channel** feature
4. Toggle the feature **ON**

<figure><img src="https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2FHgRX1CyMwXJrkWhfdixo%2FCheckout_Page_Highlighted_EN.png?alt=media&amp;token=850086a5-a336-4a0e-a99a-c1c73d2e82fa" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Activation is required before the feature can function, even if `customer.id` is sent via API, the feature will not display if it hasn't been activated on the Dashboard.
{% endhint %}

### 2. API Reference

Once activated, merchants need to pass the customer identifier in the API request:

#### **Required parameter:**

| Parameter     | Type   | Description                                                                         |
| ------------- | ------ | ----------------------------------------------------------------------------------- |
| `customer.id` | String | Unique identifier for the customer, used to look up their last used payment channel |

#### **Request sample:**

```json
{
  "customer": {
    "id": "CUST-00123"
  }
}
```

#### **FAQ**

**Q: What happens if the customer used multiple channels before?**\
A: Only the most recent successfully used channel is shown.

**Q: Does this work without activating on the Dashboard?**\
A: No. The feature must be activated on the Dashboard even if `customer.id` is sent via API.

**Q: Is `customer.id` required for all merchants, even those not using this feature?**\
A: No, `customer.id` is only needed if the merchant wants to enable this feature.
