> 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/additional-feature/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 to Activate**

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="/files/H1Ru9hE1weNlk0xjgQMt" alt=""><figcaption></figcaption></figure>

*Note: 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.*

**How to Integrate**

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 |

**Example request:**

json

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

**How It Works**

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

**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.
