Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a payment orchestrator
- Use dLocal Payments for payment processing
- Have an active dLocal account with API access enabled
Create a dLocal integration in Payrails
- Log in to the Payrails portal.
- Go to Settings → Integrations.
- Select Add instance to create a new integration configuration.
- Select the workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple workspaces.
Step 1: Choose the integration type
- Select Payment.
- Continue to the next step.
Step 2: Choose the provider
- Select dLocal.
- Continue to the next step.
Step 3: Configure your dLocal integration
Integration instance name
An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for different regions, currencies, or business needs. Choose a clear, consistent name, as it is used in routing.In Payrails
- Enter an Instance name for your integration.

- Use a name that is easy to remember, especially for routing purposes
- Example:
merchant_dlocal(or another descriptive name)
API credentials
In dLocal- Log in to the dLocal dashboard
- Enable Test Mode at the top of the page when working in staging (this switches the environment to staging)
- Go to Developers
- Click Integration
- Create a new pair of API keys by selecting Create new
- Copy the following parameters:
X-LoginX-Trans-KeySecret Key
- Paste the three parameters into the respective fields

Webhooks or notifications
Payrails uses provider webhooks or notifications to receive asynchronous
payment status updates.
- Copy the notification URL.
- Go to Integration → Endpoint
-
Paste the Payrails notification URL into:
- Payins notification URL
- Refunds
- Click Save changes
Payment methods
In Payrails- Select the payment methods that should be enabled for this integration.

Enable the integration
In Payrails- Save the configuration to enable the integration.
- Confirm the integration shows as Enabled.
The dLocal production environment requires IP whitelisting. Contact the
Payrails team to obtain the list of IP addresses that must be allowlisted in
dLocal before going live.
Next steps
- Run a test payment using a dLocal test card.
-
Verify that:
- The payment appears in dLocal.
- The payment status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.