Pix via dLocal is asynchronous. dLocal confirms the payment by webhook once the customer completes the transfer in their banking app, so fulfil orders only on a final status. Full and partial refunds are supported, and a payment can be refunded more than once.
Get started with Pix via dLocal
Before you begin
If this is your first payment method, make sure to follow the Get started guide to begin processing payments with Primer. Pix is not active on a dLocal account by default. Ask your dLocal contact to enable it before you activate it on the Checkout. You need credentials from the dLocal Merchant Dashboard. If you do not have an account, contact your dLocal account manager or support@dlocal.com. To get sandbox credentials, toggle Test mode in the top right of the dLocal dashboard, a blue bar appears across the top to confirm you are in test mode. Your x_login, x_trans_key and secret key are under Settings > Integration, on the Integration tab.Configure in the Dashboard
- Add Pix via dLocal payment method to your Dashboard Go to the integrations section of the Dashboard, click on the ‘New Integration’ button and search for dLocal. Enter your x_login, x_trans_key and secret key, then click Connect.
- Add your MID Enter your dLocal AccountId in the MID box. You can find it at the top of the dLocal dashboard.
- Configure the webhook in dLocal Copy the callback URL that Primer shows you during setup and paste it into the Refunds URL field in the dLocal dashboard, under your API keys.
- Activate Pix via dLocal on the Checkout Go to the Checkout section of the Dashboard and toggle on Pix. Add a display condition so Pix only appears where it can be paid at a minimum,
Currency = BRL. - Configure a Workflow to process payments made with Pix via dLocal Go to Workflows and create a workflow with a Payment created trigger and an Authorize payment action with Auto-continue enabled. Pix via dLocal is a web redirect connection, so no further steps are needed.
Prepare the client session
dLocal leverages the following parameters to process a payment. Pass them when creating the client session.Prepare the SDK for payments
- Web
- iOS
- Android
Use the payment method type
DLOCAL_PIX wherever the code below references YOUR_PAYMENT_METHOD_TYPE.- Primer Checkout (recommended)
- Universal Checkout (legacy)
- Headless Universal Checkout (legacy)
Primer Checkout is our latest web SDK, built around declarative web components. Once Pix via dLocal is enabled in your Dashboard, the default For dynamic rendering based on what the server returns, listen to primer:methods-update or use primer-payment-method-container for declarative filtering.
<primer-checkout> layout renders it automatically alongside your other methods — no payment-method-specific markup is required.