Set up payments with Mercado Pago


This guide explains how to connect your own Mercado Pago account to EzDIS so your clients can pay invoices from a link. The money goes into your Mercado Pago account; EzDIS records the payment and updates the customer account when it receives the provider’s confirmation.

Before you start: you need a verified Mercado Pago account, access to its developer panel and the address of your EzDIS app (for example https://midistribuidora.ezdis.net). Never share your Access Token (the credential that lets EzDIS create and check payments in your account) or the webhook secret key (the one that confirms notifications really come from Mercado Pago).

What this integration does

EzDIS creates a payment link for each invoice and includes it in the notices when at least one payment method is enabled (Mercado Pago, PayPal or bank transfer). The client opens that link and sees the available methods. With Mercado Pago enabled, they can choose it and pay with the options their account and country allow. Mercado Pago only appears if the invoice is in your country’s currency.

With the webhook set up, the flow is:

  1. EzDIS creates the link for an invoice.
  2. The client completes the payment in Mercado Pago.
  3. Mercado Pago notifies EzDIS of the approved payment.
  4. EzDIS records the payment, updates the invoice balance and can send the notices you have enabled.

Without the webhook, the client can pay, but EzDIS doesn’t get the automatic confirmation: you would have to record the payment by hand. That’s why the webhook is needed for automatic reconciliation. We’ll see how to set it up below.

Create the application in Mercado Pago

If you don’t have an account yet, create one and verify your identity on the Mercado Pago site for your country (Uruguay, Argentina or Brazil). Use the account that will receive the payments. Follow these steps, in this order:

  1. Open the developer panel (Uruguay, Argentina or Brazil) and click Integrations.

Open Integrations

  1. In integration management, click Create application.

Create application

  1. Choose Create in the integration panel. Don’t choose Create with AI: the application has to be set up manually.

Create in the integration panel

  1. As the solution to integrate, choose Checkout API.

Choose Checkout API

  1. In API type, choose Orders API. Keep the name Mercado Pago suggests automatically, accept the data authorization and click Create application.

Set up the Orders API and create

The generated name can differ for each account. You don’t need to change it.

Get the production credentials

  1. Inside the application you just created, open Production credentials.

Open production credentials

  1. If Mercado Pago asks for more details, fill them in with your company’s real information. Choose the industry that matches the business.

  2. In Website (required), enter https://www.ezdis.net/.

    Don’t copy the URL from the screenshot literally: the domain must match the app you are setting up.

Industry and website

  1. Copy these two credentials:

    • Public Key
    • Access Token

Copy the Public Key and Access Token

The Public Key can be shown in the browser. The Access Token is secret: don’t send it by WhatsApp, email or screenshot, and don’t enter it in someone else’s account.

Use production credentials to collect real payments. Test credentials only work for Mercado Pago tests and don’t process real money.

Enter the credentials in EzDIS

  1. Open the EzDIS settings.
  2. Turn on Enable Mercado Pago payments.
  3. Paste the production Public Key and Access Token.
  4. Set the maximum number of installments the client can choose (and, if you like, the default number) and save.

Mercado Pago tab in the settings

Enter the credentials in the settings

Field What it’s for
Enable Mercado Pago payments Shows Mercado Pago as a payment method when the invoice is compatible.
Mercado Pago Public Key Identifies your Mercado Pago application on the payment screen.
Mercado Pago Access Token Lets EzDIS create and check payments in your account. Keep it private.
Default number of installments Number preselected for the client, if Mercado Pago offers it.
Maximum number of installments Limit of installments the client can choose, subject to what Mercado Pago allows.
Webhook Secret Key Filled in during the next step to confirm notifications really come from Mercado Pago.
Fee percentage charged to the user Optional: adds a percentage to the amount the client sees to cover processing costs.

Saving these credentials isn’t enough to record payments automatically: you still need to set up the webhook.

Set up the webhook to record payments

The webhook is the notification Mercado Pago sends to EzDIS when a payment’s status changes. Without it, an invoice can stay pending even though the client already paid, and you would have to reconcile payments by hand: check in Mercado Pago what was collected and record each payment in EzDIS.

1. Prepare the URL

Use this structure, replacing YOUR-ACCOUNT with your app’s real subdomain:

https://www.ezdis.net/api/payment/mercadopago/webhook?domain=YOUR-ACCOUNT.ezdis.net

For example, if you open your app at https://tutoriales.ezdis.net, the URL becomes:

https://www.ezdis.net/api/payment/mercadopago/webhook?domain=tutoriales.ezdis.net

After domain= put only your app’s domain: no https:// and no trailing slash (/).

2. Register it in Mercado Pago

  1. Go back to your application in the developer panel and open Webhooks.

Open Webhooks and set up notifications

  1. Choose Set up notifications and select Production mode.

  2. In Production URL, paste exactly this address, replacing YOUR-ACCOUNT with your app’s real subdomain:

https://www.ezdis.net/api/payment/mercadopago/webhook?domain=YOUR-ACCOUNT.ezdis.net

YOUR-ACCOUNT isn’t fixed text: it’s the subdomain that identifies that account. For example, if the app opens at https://tutoriales.ezdis.net, the URL becomes https://www.ezdis.net/api/payment/mercadopago/webhook?domain=tutoriales.ezdis.net. Copy only the domain, without https:// or the trailing slash. Don’t use /webhook alone and don’t put www.ezdis.net as the account.

  1. Select the Order (Mercado Pago) event. It’s the event that lets EzDIS receive the payment result. If you collect with Mercado Pago’s automatic subscription, also tick Plans and subscriptions: without that event, subscription charges aren’t recorded automatically.
  2. Save the settings.

Webhook URL and secret key

3. Copy the secret key

After saving, Mercado Pago shows a Secret key on that same screen. Copy it in full and paste it into Settings → Mercado Pago → Mercado Pago Webhook Secret Key in EzDIS.

The secret key is required to validate notifications. Don’t share or publish it. If you regenerate the key in Mercado Pago, replace it in EzDIS too.

The key lets EzDIS check each notification’s signature. If the key doesn’t match, EzDIS rejects the notification so that no one else can mark fake payments.

Test the full flow

Run a test with a low-amount invoice before sharing links with clients:

  1. Create an invoice for a client with a valid email or phone if you want to check the notices.
  2. Copy the payment link from the invoice and open it in another session or device.
  3. Check that Mercado Pago appears and that the amount matches the invoice.
  4. Complete the payment.
  5. Go back to EzDIS and check that the invoice is marked as paid and the customer account is updated.
  6. If you set up notices, check the confirmation email or WhatsApp too.

The update depends on the webhook notification; it can take a few moments. Don’t mark the invoice as collected by hand while you wait, to avoid recording the payment twice.

Pass a fee on to the client

Mercado Pago charges its own fee per transaction. If your commercial policy allows passing that cost on, set Fee percentage charged to the user. For example, with 5:

Item Amount
Original invoice $1,000
Configured fee (5%) $50
Total the client pays $1,050
Amount applied to the invoice in EzDIS $1,000

Check that showing this extra charge complies with Mercado Pago’s rules and the regulations that apply to your business.

Troubleshooting

Situation What to check
Mercado Pago doesn’t appear in the link That the integration is enabled, the credentials are saved and the invoice is compatible with this payment method.
Mercado Pago shows an error when opening the link Public Key, Access Token, verified account and currency available in your Mercado Pago account.
The client paid and the invoice is still pending Webhook URL, Order (Mercado Pago) event, production mode and Webhook Secret Key. Wait a few moments before recording a manual payment.
The notification is rejected That the secret key copied into EzDIS belongs to the same Mercado Pago application and environment.
The amount is different Check the configured fee, the installments and the invoice currency.

Costs and responsibilities

This integration has no extra cost from EzDIS. Mercado Pago charges its own fees, timelines and terms. EzDIS only connects your account to create payments and record the confirmed ones; it doesn’t keep a percentage of what you collect from your clients.