Supported workflows
| Workflow | Supported |
|---|---|
| Payrails SDK | ✔ |
| Payrails API | ✔ |
| Delayed / Manual Capture | ✖ |
| Instant Capture | ✔ |
| Cancel / Void | ✖ |
| Refund / Reverse | ✔ |
| Save Instruments | ✖ |
| Merchant Initiated Transaction (MIT) | ✖ |
Before you begin
Complete these steps before you send your first Opay 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 Opay on your dLocal account for each country where you accept it.
- In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select OPayWallet under Payment methods, and save.
- Add Opay 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 an Opay payment
Call authorize a payment withoPayWallet as the paymentMethodCode. The response includes the redirect to the Opay 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 Opay
- Payrails picks the dLocal Opay variant from
meta.customer.country.code: one for Nigeria and one for Egypt. A missing country code returns an error, and any value other thanNGorEGreturns an error. - The payment stays pending until dLocal reports the result. If the customer doesn’t complete the payment in time, dLocal expires it and Payrails marks it as failed.