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
Log in to the DOKU Dashboard
Navigate to the Checkout Page settings
Locate the Last Used Payment Channel feature
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:
customer.id
String
Unique identifier for the customer, used to look up their last used payment channel
Example request:
json
How It Works
Merchant sends
customer.idin the checkout API requestDOKU looks up the customer's transaction history
If a previous successful payment channel is found, it is automatically shown/prioritized on the Checkout Page
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