Supported workflows
Before you begin
Complete these steps before you send your first PromptPay payment through dLocal:- Set up a dLocal integration in your workspace. Follow the dLocal integration setup guide if you don’t have one yet.
- Ask dLocal to enable PromptPay on your dLocal account for Thailand.
- In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select PromptPay under Payment methods, and save.
- Add PromptPay as a payment option in your workflow.
Request fields for dLocal
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 PromptPay payment
Call authorize a payment withpromptPay as the paymentMethodCode. The response includes the redirect to the QR code page.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How dLocal handles PromptPay
- Payrails sends PromptPay to dLocal as a QR payment for Thailand, whatever the customer country code. dLocal uses the same QR method in other countries, so the Thailand country code identifies the payment as PromptPay.
- Payrails checks that the currency is
THB. - Payrails removes digits and punctuation from the payer name before it sends the name to dLocal.
- Payrails sends full and partial refunds to dLocal against the original payment.