This page explains how to add DOKU payment methods to your existing Web Drop-in integration.
Through our partner DOKU, we offer various bank transfer payment methods and convenience store payment methods in Indonesia.
Requirements
Select which endpoint you are using:
Import resources for v6
If you are using Web Drop-in v6, import the resources you need for DOKU payment methods:
import { AdyenCheckout, Doku} from '@adyen/adyen-web'
API reference
You do not need to send additional fields for DOKU payment methods. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:
- /sessions: This is the default with Drop-in v5.0.0 or later.
- /payments: If you implemented an additional use case.
Drop-in configuration
There are no configuration steps specific to DOKU payment methods required for Drop-in.
Customization
You can customize the expiry date of the virtual bank account (for bank transfers) or the voucher (for convenience store payments). By default, the validity period is 48 hours. To change the validity period, contact the Support Team.
You can change the language of the voucher to Indonesian by using the locale
id-ID. To do so, make sure to specify the locale
in the code for the checkout page. For instructions, refer to Customizing Drop-in for Web.
Test and go live
Use our test vouchers and card numbers to simulate the payments.
Check the status of the test payments in your Customer Area, under Transactions > Payments.
Before you can accept live payments, you need to submit a request for one or more Indonesian DOKU online banking or convenience store payment methods in your live Customer Area.