Supported workflows
Before you begin
Complete these steps before you send your first DCB payment through Boku:- Set up a Boku integration in your workspace. Contact your Payrails account team if Boku isn’t listed in your Payrails Portal yet.
- Ask Boku to enable DCB on your Boku merchant account for each country and carrier you plan to bill.
- In the Payrails Portal, go to Settings → Integrations, open your Boku integration, select DCB under Payment methods, and save.
- Add DCB as a payment option in your workflow.
Request fields for Boku
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize a DCB payment
The first payment for a customer has two steps: authorize to start the opt-in, then confirm with the OTP.Start the opt-in
Call authorize a payment withdcb as the paymentMethodCode. Set storeInstrument to true to reuse the opt-in for later payments.
Authorize request
Confirm with the OTP
Collect the OTP from the customer, then call confirm a payment on the same execution. Send the OTP asdata.otp:
Confirm request
Charge later payments
For a later payment, authorize with the saved instrument’s ID aspaymentInstrumentId and set meta.order.processingType to Subscription or CardOnFile. Payrails charges the Boku opt-in directly. The customer doesn’t enter an OTP, and you don’t send a confirm request.
Authorize request
How Boku handles DCB
- Boku identifies the customer’s carrier during the opt-in. Payrails stores the carrier, the country and the mobile number on the saved instrument.
- A first payment with a zero amount only creates the opt-in. Payrails confirms it with the OTP and charges nothing. Use it to start a free trial, then charge the first real amount later.
- When you delete a saved DCB instrument, Payrails cancels the opt-in with Boku.
- To refund a DCB payment, send
meta.customer.country.codeon the refund request too. Payrails uses it to reach the Boku endpoint for the country.