Skip to main content
Accept Opay payments from customers in Nigeria and Egypt with dLocal as the payment service provider (PSP). The customer selects Opay, confirms the payment from their Opay wallet and returns to your site.

Supported workflows

Before you begin

Complete these steps before you send your first Opay payment through dLocal:
  1. Set up a dLocal integration in your workspace. Follow the dLocal integration setup guide if you don’t have one yet.
  2. Ask dLocal to enable Opay on your dLocal account for each country where you accept it.
  3. In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select OPayWallet under Payment methods, and save.
  4. 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. 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 an Opay payment

Call authorize a payment with oPayWallet as the paymentMethodCode. The response includes the redirect to the Opay payment page.
Authorize request
After the customer confirms the payment, dLocal returns them to your 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 than NG or EG returns 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.
Last modified on October 2, 2026