> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Usage and configuration

> Add the Mercado Pago node to your Canvas flow, configure its fields, and test payments in test mode.

Once the integration is connected, the **Mercado Pago** node is available in Canvas and lets you create **embedded WebView** checkout experiences within the conversational flow.

> [!TIP]
>
> First time implementing a payment? Start with the [Tutorial: your first payment](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/implementando-tu-primer-cobro.md).
>
> If you have not installed the integration yet, begin with [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/conectar-en-brain-studio.md).

***

## Add the node to Canvas

**1. Open your flow in Canvas**

In Brain Studio, open the flow where you want to add Mercado Pago payments.

**2. Add the Mercado Pago node**

Add **Mercado Pago** from the **Canvas** toolbar, under the **Payments** node, or from available payment providers once the integration is installed.

The exact entry point may vary depending on whether you started installation from Marketplace, Jelou Agent, the Payments node in Canvas, or a template.

**3. Connect the node at the payment step**

Connect the Mercado Pago node after the flow already has the amount, buyer data, and purchase confirmation.

**4. Open the configuration panel**

Select the node to open the right-side panel. Complete the **Payment data** and **Advanced** tabs, and review the available **outputs** on the Canvas node.

If required fields are missing, the node shows *Incomplete configuration. Check the node fields.* and the environment badge (**Development** or **Production**).

***

## Configure the node

> [tab] Payment data
>
> ![Mercado Pago node in Canvas with the Payment data tab open in the side panel](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/mercado-pago-nodo-datos-del-pago.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=0822dbc19dc6a7cde416f531d7e35f1d)
>
> Payment data tab: personalization, amounts, and buyer email
>
> > [accordion] Personalization
> >
> > **Personalization** `boolean` (default: false)
> >
> > Turn it on to define the messages that accompany your payment button.
> >
> > When enabled, it shows the **Header**, **Body**, and **Footer** fields.
> >
> > ![Example message with customized text and Mercado Pago payment button in WhatsApp](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/mercado-pago-boton-ejemplo.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=f6db5219e43173be92f979306c06505b)
> >
> > Example of a customized payment button message in WhatsApp
>
> > [accordion] Header
> >
> > **Header** `string`
> >
> > Title of the payment button message.
> >
> > Shown when **Personalization** is enabled.
>
> > [accordion] Body
> >
> > **Body** `string`
> >
> > Main text of the payment button message.
> >
> > Shown when **Personalization** is enabled.
>
> > [accordion] Footer
> >
> > **Footer** `string`
> >
> > Closing text of the payment button message.
> >
> > Shown when **Personalization** is enabled.
>
> > [accordion] Payment reason
> >
> > **Payment reason** `string` *required*
> >
> > Descriptive text for the charge. Examples: order number, product, service, or internal reference.
>
> > [accordion] Taxable amount
> >
> > **Taxable amount** `number` *required*
> >
> > Amount subject to VAT or other configured tax. Numbers only.
>
> > [accordion] Tax-free amount
> >
> > **Tax-free amount** `number` *required*
> >
> > Tax-exempt amount. Numbers only. If it does not apply, use `0`.
>
> > [accordion] Buyer email
> >
> > **Buyer email** `string` *required*
> >
> > Email the buyer will use at checkout.
> >
> > In **Development**, it must be a Mercado Pago **test user** email for the corresponding country.
> >
> > In **Production**, use the buyer's real email captured in the flow.
> >
> > > [!NOTE]
> > >
> > > If the integration is in **Development**, copy one of these test emails into **Buyer email**. It must be from the **same country** as your test credentials.
> >
> > > [accordion] 🇨🇱 Chile
> > >
> > > ```txt theme={null}
> > > test_user_230383680042455079@testuser.com
> > > ```
> >
> > > [accordion] 🇵🇪 Peru
> > >
> > > ```txt theme={null}
> > > test_user_6344464757279593247@testuser.com
> > > ```
> >
> > > [accordion] 🇨🇴 Colombia
> > >
> > > ```txt theme={null}
> > > test_user_7600640374023229585@testuser.com
> > > ```
> >
> > > [accordion] 🇲🇽 Mexico
> > >
> > > ```txt theme={null}
> > > test_user_538195043292703001@testuser.com
> > > ```
> >
> > > [accordion] 🇧🇷 Brazil
> > >
> > > ```txt theme={null}
> > > test_user_6254528388464257378@testuser.com
> > > ```
> >
> > > [accordion] 🇦🇷 Argentina
> > >
> > > ```txt theme={null}
> > > test_user_1511189314898568640@testuser.com
> > > ```
> >
> > > [accordion] 🇺🇾 Uruguay
> > >
> > > ```txt theme={null}
> > > test_user_1178397850300963040@testuser.com
> > > ```

> [tab] Advanced
>
> ![Mercado Pago node with the Advanced tab open showing environment, currency, VAT, and save response](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/mercado-pago-nodo-avanzado.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=3af0bb75a3f715bd06f9ec5ba9361d32)
>
> Advanced tab: environment, expiration, currency, VAT, and save response
>
> > [accordion] Environment
> >
> > Shows whether Mercado Pago operates in **Development** or **Production**.
> >
> > In **Development**, you will see *Your integration is in development mode. Move it to production when you are ready.* and you can start the **Go to production** flow.
> >
> > In **Production**, the selector reflects that the integration already operates with production credentials.
> >
> > > [!NOTE]
> > >
> > > **Development** corresponds to an installation with Mercado Pago **test credentials**. **Production** corresponds to **production credentials**.
> >
> > > [!WARNING]
> > >
> > > Do not go to production without a **Production credentials** Access Token ready in Mercado Pago.
>
> > [accordion] Payment button expiration
> >
> > **Payment button expiration** `string`
> >
> > Defines how long the payment button remains valid after it is sent.
> >
> > Select an option from the list available in Brain Studio.
>
> > [accordion] Currency
> >
> > **Currency** `string` *required*
> >
> > Defines the charge currency (for example, `CLP`).
> >
> > It must match the country of the connected credentials and the **Charge currency** set when installing the integration in [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/conectar-en-brain-studio.md).
>
> > [accordion] VAT percentage
> >
> > **VAT percentage** `number`
> >
> > Defines the VAT percentage applied to the charge.
> >
> > It should be consistent with the **Applied VAT** configured when installing the integration.
>
> > [accordion] Payment metadata
> >
> > **Payment metadata** `string`
> >
> > Optional field for internal reference such as order ID, sequence number, or user ID.
>
> > [accordion] Save response
> >
> > **Save response** `string`
> >
> > Stores the selected option in a memory variable.
> >
> > Enter the variable name after the `{{$memory.}}` prefix. Maximum **50 characters**.
> >
> > The response will be stored in memory and available in later nodes.
> >
> > > [!TIP]
> > >
> > > Useful for traceability, later validations, or flow decisions.

***

## Node outputs

Outputs appear on the Mercado Pago node in Canvas. Connect them according to the result you want to handle in your flow.

> [accordion] Successful payment
>
> Triggers when Mercado Pago confirms the transaction was approved.
>
> Recommendations:
>
> * confirm the order
> * send a receipt or notification
> * update purchase status in your systems

> [accordion] Pending payment
>
> Triggers when the transaction is in process or requires later confirmation.
>
> Recommendations:
>
> * inform the user clearly
> * avoid creating a second charge while the status is being resolved
> * wait for a webhook update or later query when applicable

> [accordion] Payment message sent
>
> Triggers when the message with the payment button is sent successfully in the conversation.
>
> This output does **not** confirm payment. It only indicates that the message with the payment button was sent successfully in the conversation.
>
> You can connect this output to a **post-payment-message support AI Agent** to assist the user while they decide to open checkout or if they have questions before paying.
>
> **Recommendations:**
>
> * answer questions about how to open the payment button
> * help if the WebView does not load or the user does not understand the step
> * avoid creating a new charge without context
> * do not confirm payments from this output
>
> **Example prompt (reference):**
>
> ```txt theme={null}
> Act as “Payment Support”, a brief assistant to help the user after receiving a payment button message inside WhatsApp.
>
> Context:
> The user just received a message with a payment button to open a WebView checkout. Your role is to answer simple questions before the user completes payment.
>
> ────────────────────
> IMMEDIATE INTERRUPTION
> ────────────────────
> If the last message or event received contains payment result signals, DO NOT respond.
>
> Payment result signals:
> - successful payment, approved payment, completed payment
> - pending payment
> - failed payment, rejected, declined, or denied
> - payment error
> - automatic provider confirmation
> - receipt, proof, operation number, transaction ID, payment ID
> - messages with receipt structure, amounts, payment method, or final status
>
> When you detect any of these signals, stop immediately. Payment results must be handled by the official payment node outputs, not by this agent.
>
> ────────────────────
> BEHAVIOR
> ────────────────────
> - If the user did not ask a question or report a problem, do not respond.
> - If the user has a question, respond briefly, clearly, and helpfully.
> - Do not confirm payments.
> - Do not invent payment statuses.
> - Do not recalculate amounts.
> - Do not promise reversals, approvals, refunds, or settlement times.
> - Do not generate new links or new charges.
> - If the user needs human help, indicate they can wait for support or continue through the channel defined by the flow.
>
> ────────────────────
> WHAT YOU CAN ANSWER
> ────────────────────
> You can help with:
> - how to open the payment button
> - what to do if the WebView does not load
> - what to do if the user closed checkout
> - basic questions about completing the payment form
> - general guidance if payment appears pending or rejected, without confirming status
>
> ────────────────────
> SUGGESTED RESPONSES
> ────────────────────
> If the user asks how to pay:
> “Open the payment button and follow the checkout instructions. When you finish, come back to this conversation.”
>
> If the WebView does not load:
> “Try opening the button again and check your connection. If the problem continues, try again later or ask for help in this chat.”
>
> If the user says payment was rejected:
> “You can review the entered data and try again. If the problem continues, use another payment method or request help through this channel.”
>
> If the user says they already paid:
> Do not confirm payment. Do not respond if the message looks like an automatic result or receipt. If it is only a user phrase, respond:
> “Thanks. Let’s wait for payment confirmation to continue.”
>
> ────────────────────
> CLOSING
> ────────────────────
> If the user says they no longer need help, respond briefly:
> “Perfect. If you need anything else, I’ll be here.”
> ```

> [accordion] Failed payment
>
> Triggers when the transaction was rejected, declined, denied, or not completed.
>
> Recommendations:
>
> * allow a controlled retry
> * offer a support path or an alternative route

> [accordion] Error
>
> Triggers on technical errors, provider errors, or communication failures during payment creation or processing.
>
> Recommendations:
>
> * log the error
> * show a contingency message
> * retry in a controlled way and escalate if it persists

***

## Test payments

If Mercado Pago is connected with **test** credentials, checkout must be completed with a Mercado Pago **test user**.

> [!NOTE]
>
> In test mode, payment is fictitious and does not move real money. The **Development** environment in the node corresponds to Mercado Pago **test credentials**.

**1. Confirm test credentials**

Verify that Mercado Pago is installed with a **Test credentials** **Access Token**.

**2. Configure the node in test environment**

In the **Advanced** tab, verify the environment is **Development**.

**3. Use a test user email**

In **Buyer email**, use a test user from the **same country** as the connected credentials.

The full list by country is in the [first payment tutorial](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/implementando-tu-primer-cobro.md#test-emails-by-country-test-mode--dev).

**4. Test from WhatsApp**

Trigger the flow from WhatsApp, open the Mercado Pago WebView checkout, and complete payment with the [test cards by country](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/implementando-tu-primer-cobro.md#test-cards-by-country) for the corresponding country.

**5. Validate flow output**

Verify which output the flow continues through:

* **Payment message sent** (button send only)
* **Successful payment**
* **Pending payment**
* **Failed payment**
* **Error**

***

## Go to production

If you installed Mercado Pago with **test** credentials, you can start going to production from the **Advanced** tab of the Mercado Pago node in **Canvas** or from the **Mercado Pago** page in **Marketplace**.

In both cases, the same modal opens to enter the production Access Token and confirm the configuration.

Before operating with real payments:

* Make sure you have a **Production credentials** **Access Token** in Mercado Pago.
* Use the **Go to production** flow described in [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/conectar-en-brain-studio.md).
* Confirm that **Currency** and **VAT percentage** in the node match the production configuration.
* Replace any test data in the node with real flow data.
* In production, use the buyer's real email.
* Run a low-amount real test before scaling.

***

## Important considerations

> [accordion] Environment depends on installation
>
> If you installed Mercado Pago with test credentials, use test users and test emails. If you installed with production credentials, use the buyer's real data.

> [accordion] Buyer email is critical in Development
>
> In testing, **Buyer email** must belong to a Mercado Pago **test user** for the corresponding country.
>
> If you use a real email in Development, checkout may fail or not continue through the expected output.

> [accordion] Currency and VAT must be consistent
>
> The node's **Currency** and **VAT percentage** must match what was set when installing the integration and the country of your Mercado Pago credentials.

> [accordion] Avoid duplicate payments
>
> In pending or failed scenarios, inform the user clearly before starting a new charge attempt. Keep retries controlled.

> [accordion] Payment methods and pending statuses
>
> Some Mercado Pago payment methods may remain pending before settlement. Your flow must handle **Pending payment** without assuming the charge is already confirmed.

> [accordion] Embedded WebView in WhatsApp
>
> For checkout to open inside WhatsApp, the account must be a **verified WhatsApp Business** account. If it is not verified, checkout will open in the device's external browser. See the warning in [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/conectar-en-brain-studio.md).

***

## Next step

> [card] [Coverage and pricing](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/mercado-pago/cobertura-y-precios.md)
>
> Review availability by country, payment methods, and Mercado Pago reference fees.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.