Supported workflows
Before you begin
Complete these steps before you send your first bank transfer 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 bank transfer on your dLocal account for each country where you accept it.
- In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select BankTransfer under Payment methods, and save.
- Add bank transfer 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. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.Authorize a bank transfer payment
Call authorize a payment withbankTransfer as the paymentMethodCode. The response includes the redirect to the dLocal payment 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 bank transfers
- Payrails sends bank transfer to dLocal for the country in
meta.customer.country.code. The countries available to you depend on your dLocal account. - The payment stays pending until dLocal reports the result. If the customer doesn’t complete the transfer in time, dLocal expires the payment and Payrails marks it as failed.
- Payrails records the payment method that dLocal reports in its response. In some countries dLocal processes the request through a local payment method, and the payment then shows that method.