Skip to main content
NuPay via dLocal redirects the customer to Nubank, where they approve the payment in the Nubank app using the balance or credit limit on their account. NuPay is the checkout wallet of Nubank, Brazil’s largest digital bank, and is available in BRL only.
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

  1. 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.
  2. 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.
  3. 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

Use the payment method type DLOCAL_NUPAY wherever the code below references YOUR_PAYMENT_METHOD_TYPE.

Go live

Ensure to use production credentials, and confirm with dLocal that NuPay is enabled on your production account.