NuPay via dLocal is asynchronous. dLocal confirms the payment by webhook once the customer approves it in the Nubank 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 NuPay 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. NuPay is not active on a dLocal account by default. Ask your dLocal contact to enable it before you activate it on the Checkout.Configure in the Dashboard
- Add NuPay 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. Follow the instructions to connect your dLocal account to your Primer Dashboard.
- Activate NuPay via dLocal on the Checkout Go to the Checkout section of the Dashboard and activate the NuPay via dLocal payment method. Add a display condition so NuPay only appears where it can be paid, at a minimum,
Currency = BRL. - Configure a Workflow to process payments made with NuPay via dLocal Go to Workflows, and ensure there is a workflow with the Authorization action configured to process APMs.
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_NUPAY 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 NuPay 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.