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

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

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

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.

Last updated