<!-- Canonical: https://www.ezdis.net/en/manual/1.0/config/dlocal | Language: en -->

# Charge with dLocal

---

dLocal Go is dLocal's product for small businesses: you open your account on your own, with no contract, and charge by card, bank transfer, Pix or cash depending on the payer's country. This guide connects **your own** dLocal Go account to EzDIS: the money goes straight to your dLocal account.

---

- [What this integration does](#section-0)
- [Countries and currencies](#section-1)
- [Create your dLocal Go account](#section-2)
- [Copy your keys](#section-3)
- [Connect dLocal in EzDIS](#section-4)
- [Test in sandbox](#section-5)
- [Go live](#section-6)
- [Refunds and QR charging](#section-7)
- [Troubleshooting](#section-8)

<a name="section-0"></a>
## What this integration does

When dLocal is connected, your invoices' payment link shows the **Pay with dLocal** button. If you also have Mercado Pago, PayPal or bank transfer, the payer chooses the method.

1. The payer taps **Pay with dLocal** and goes to dLocal's secure page.
2. They pay with a method dLocal offers in their country.
3. EzDIS confirms the payment with dLocal (never only from the browser coming back), records it on the invoice and notifies by email or WhatsApp if you have those notifications on.

Payment notifications are set up automatically on each charge: you do not need to register any webhook in dLocal.

---

<a name="section-1"></a>
## Countries and currencies

dLocal Go charges in Argentina, Bolivia, Brazil, Chile, Colombia, Costa Rica, Ecuador, Guatemala, Mexico, Panama, Paraguay, Peru and Uruguay ([official coverage](https://dlocalgo.com/en/coverage)).

EzDIS offers dLocal on invoices in **ARS, BOB, BRL, CLP, COP, CRC, GTQ, MXN, PEN, PYG, UYU and USD**. With a local currency the charge is made in that country; with dollars, dLocal converts to the payer's currency on its page. An invoice in another currency (for example EUR) does not show the dLocal button.

---

<a name="section-2"></a>
## Create your dLocal Go account

dLocal Go has two separate accounts, each with its own keys:

| Account | Purpose | Sign-up |
|---|---|---|
| **Sandbox** | Test without real money | [dashboard-sbx.dlocalgo.com/signup](https://dashboard-sbx.dlocalgo.com/signup) |
| **Production (live)** | Real charges | [dashboard.dlocalgo.com/signup](https://dashboard.dlocalgo.com/signup) |

1. Create the account with your email and fill in your business details.
2. As **website** enter your EzDIS account address (the one you log in with). dLocal ties the keys to that site: using them on another site can get the account blocked.
3. In production, dLocal asks you to verify your business before enabling charges.

---

<a name="section-3"></a>
## Copy your keys

1. Log in to the dLocal Go dashboard (sandbox or production).
2. Go to **Connections → API**.
3. Under **Integration keys** copy the **API key** and the **Secret key** with the copy icon.

> **Important:** the Secret key is private. Do not share it or paste it anywhere public. EzDIS stores it encrypted and never shows it again.

---

<a name="section-4"></a>
## Connect dLocal in EzDIS

1. In the app open **Finance → Charge with dLocal**.
2. Choose the **Environment**: **Sandbox** to test or **Live** for real charges.
3. Paste the **API key** and the **Secret key**.
4. Optional: in **Fee paid by the customer (%)** enter the percentage to add to the charge to cover what dLocal charges you. With 0 you absorb the fee.
5. Tap **Test connection**. If dLocal accepts the keys, turn on **Charge with dLocal** and tap **Save**.

To change only the environment or the fee you do not need to paste the keys again: leaving the fields empty keeps the saved ones.

---

<a name="section-5"></a>
## Test in sandbox

1. Connect the sandbox account keys with the **Sandbox** environment.
2. Open the payment link of a test invoice and tap **Pay with dLocal**.
3. Pay with a dLocal test card, any future expiry date and any security code:

| Card | Result |
|---|---|
| `4111 1111 1111 1111` | Approved |
| `4242 4242 4242 4242` | Approved |
| `5555 5555 5555 4444` | Declined by the bank |
| `4000 0566 5566 5556` | Insufficient funds |

4. When you come back, the invoice is paid. [Official test cards](https://docs.dlocalgo.com/integration-api/get-started/make-a-test-payment).

---

<a name="section-6"></a>
## Go live

1. Finish verifying your production account in dLocal Go.
2. Copy the **production** keys (they differ from the sandbox ones).
3. In **Finance → Charge with dLocal** choose **Live**, paste the new keys, test the connection and save.

---

<a name="section-7"></a>
## Refunds and QR charging

If you charge electric-vehicle sessions by QR, dLocal shows up as one more method for the prepayment: paying with dLocal only accepts credit or debit cards and expires with the charging order. At the end only what was consumed is charged and EzDIS refunds the rest through dLocal, in full or in part, without you doing anything. If the refund stays pending in dLocal, it is checked again automatically.

---

<a name="section-8"></a>
## Troubleshooting

| What happens | What to do |
|---|---|
| "dLocal rejected the keys" | Check that the selected environment matches the account you copied the keys from and that they are complete. |
| "dLocal is reviewing your account" | The keys work but dLocal has not enabled charges yet. Contact dLocal Go support from the chat in their dashboard. |
| The dLocal button does not show | The invoice is in a currency dLocal does not charge, it is already paid or dLocal is not turned on. |
| The payment shows in dLocal but not on the invoice | EzDIS rechecks every dLocal notification; if more than 30 minutes have passed, record the payment by hand with the dLocal reference. |
