Skip to main content
Accept Payflex payments from customers in South Africa with dLocal as the payment service provider (PSP). The customer selects Payflex, confirms the payment on the Payflex checkout page and returns to your site.

Supported workflows

Before you begin

Complete these steps before you send your first Payflex 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 Payflex on your dLocal account for South Africa.
  3. In the Payrails Portal, go to Settings → Integrations, open your dLocal integration, select Payflex under Payment methods, and save.
  4. Add Payflex 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 Payflex payment

Call authorize a payment with payflex as the paymentMethodCode. The response includes the redirect to the Payflex checkout 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 Payflex

  • Payrails sends Payflex to dLocal for South Africa in ZAR, whatever the customer country code.
  • A missing meta.order returns an error. So does an address that lacks any of street, doorNumber, city, postalCode, state or country.code.
  • The payment stays pending until dLocal reports the result.
Last modified on October 2, 2026