> ## 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 Wompi node to your flow in Canvas, choose the payment experience (WebView or external confirmation), and test payments in Sandbox.

Once the integration is connected, the **Wompi** node becomes available in Canvas and lets you create payment experiences with **embedded WebView** or **external confirmation** inside the conversational flow.

> [!TIP]
>
> If you have not installed the integration yet, follow [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/wompi/conectar-en-brain-studio.md) first.

***

## Add the node to Canvas

**1. Open your flow in Canvas**

In Brain Studio, open the flow where you want to add the Wompi payment.

**2. Add the Wompi node**

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

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

**3. Connect the node to the payment point**

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

**4. Open the configuration panel**

Select the node to open the right side panel, complete the **inputs**, and review the available **outputs**.

![Wompi node in Canvas with the configuration side panel open](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/wompi-nodo-sidebar-configuracion.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=53258340c4f654623a645769ef006345)

Wompi node with the configuration side panel open

***

## Configure the node

> [tab] Inputs
>
> ### Payment data
>
> > [accordion] Customize payment button texts
> >
> > **Customize payment button texts** `boolean` (default: false)
> >
> > Lets you define the message that accompanies the payment button in the conversation.
> >
> > If enabled, it activates **Header**, **Body**, and **Footer** when they are available in your version of the node.
>
> > [accordion] Header
> >
> > **Header** `string`
> >
> > Title of the payment button message.
> >
> > Shown when **Customize payment button texts** is active and the field is available in your version of the node.
>
> > [accordion] Body
> >
> > **Body** `string`
> >
> > Main text of the payment button message.
> >
> > Shown when **Customize payment button texts** is active and the field is available in your version of the node.
>
> > [accordion] Footer
> >
> > **Footer** `string`
> >
> > Closing text of the payment button message.
> >
> > Shown when **Customize payment button texts** is active and the field is available in your version of the node.
>
> > [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 on which VAT applies.
>
> > [accordion] Tax-free amount
> >
> > **Tax-free amount** `number` *required*
> >
> > Amount exempt from taxes. If it does not apply, use `0`.
>
> > [accordion] Buyer full name
> >
> > **Buyer full name** `string` *required*
> >
> > Full name of the buyer. Ideally, it should come from a variable captured earlier in the flow.
> >
> > Applies when **Payment experience** is **WebView Payment**.
>
> > [accordion] Buyer email
> >
> > **Buyer email** `string` *required*
> >
> > Email of the buyer who will use the checkout.
> >
> > In Sandbox it can be a test or controlled email. In production it must be the buyer's real email.
> >
> > Applies when **Payment experience** is **WebView Payment**.
>
> > [accordion] Person type
> >
> > **Person type** `string` *required*
> >
> > Defines whether the payment holder is an **Individual** or a **Company**.
> >
> > Required when **Payment experience** is **External Confirmation Payment**.
>
> > [accordion] Cardholder first name
> >
> > **Cardholder first name** `string`
> >
> > First name of the person holding the payment.
> >
> > Applies when **Payment experience** is **External Confirmation Payment**. If the flow does not send it, the conversational agent asks the payer directly.
>
> > [accordion] Cardholder last name
> >
> > **Cardholder last name** `string`
> >
> > Last name of the person holding the payment.
> >
> > Applies when **Payment experience** is **External Confirmation Payment**.
>
> > [accordion] Document or tax ID number
> >
> > **Document or tax ID number** `string`
> >
> > ID number if the holder is an individual, or tax ID (NIT) if a company.
> >
> > Applies when **Payment experience** is **External Confirmation Payment**.
>
> > [accordion] Email
> >
> > **Email** `string`
> >
> > Email of the payment holder.
> >
> > Applies when **Payment experience** is **External Confirmation Payment**.
>
> > [accordion] Nequi phone number
> >
> > **Nequi phone number** `string`
> >
> > Phone number the payer has registered in Nequi.
> >
> > Applies only when the payer chooses **Nequi** within **External Confirmation Payment**. If you do not send it from the flow, the agent asks for it directly in the conversation before generating the payment.
> >
> > ![Nequi phone number field on the Wompi node, with the placeholder Payer's phone number in Nequi](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-nodo-input-telefono-nequi.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=da19bbe5956480ad99d743092493fb18)
> >
> > Nequi phone number field, shown when paying with Nequi
>
> ![Wompi node side panel on the Payment data tab showing Person type, Cardholder first name, Cardholder last name, Document or tax ID number, and Email](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-nodo-datos-pago-confirmacion-externa.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=ef7038e10551149a0e2c9e39946fa6d5)
>
> Payment data with the External Confirmation Payment experience: Person type, Cardholder first name, Cardholder last name, Document or tax ID number, and Email
>
> ### Advanced
>
> > [accordion] Environment
> >
> > The **Environment** block shows whether Wompi operates in **Development** or **Production**.
> >
> > If the integration is in **Development**, you can start the **Switch to production** flow from there.
> >
> > If the integration is in **Production**, the block reflects that Wompi is already operating with production credentials.
> >
> > > [!WARNING]
> > >
> > > The environment depends on the installed credentials. Do not switch to production without preparing production credentials and configuring the corresponding Events URL in Wompi.
>
> > [accordion] Payment experience
> >
> > **Payment experience** `string` *required*
> >
> > Defines how the payer completes the transaction. Available options:
> >
> > * **WebView Payment** — opens the Wompi checkout as an embedded WebView inside the conversation.
> > * **External Confirmation Payment** — a conversational agent guides the payer to complete the payment with **Nequi** or **PSE**, outside WhatsApp.
> >
> > ![Wompi node Advanced tab showing the Payment experience field with the WebView Payment and External Confirmation Payment options](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-nodo-avanzado-experiencia-pago.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=2d6400f14a36d9c307b9eb12d490426b)
> >
> > Payment experience field on the Wompi node's Advanced tab
>
> > [accordion] Payment button expiration \[minutes]
> >
> > **Payment button expiration \[minutes]** `number`
> >
> > Defines how long the payment button remains valid after being sent.
> >
> > The available values depend on the configuration visible in Brain Studio.
>
> > [accordion] Currency
> >
> > **Currency** `string` *required*
> >
> > Defines the currency of the charge.
> >
> > For Wompi Colombia, you will normally use `COP`.
>
> > [accordion] VAT percentage
> >
> > **VAT percentage** `number`
> >
> > Defines the VAT percentage applied to the payment operation.
>
> > [accordion] Payment metadata
> >
> > **Payment metadata** `string`
> >
> > Optional field to store an internal reference such as order ID, sequence number, user ID, or booking ID.
>
> > [accordion] Save result as
> >
> > **Save result as** `string`
> >
> > Defines the name of the variable where Brain Studio will store the full JSON response from the node.
> >
> > > [!TIP]
> > >
> > > Useful for traceability, later validations, or flow decisions.

> [tab] Outputs
>
> > [accordion] Successful payment
> >
> > Triggered when Wompi confirms that the transaction was approved.
> >
> > Recommendations:
> >
> > * confirm the order
> > * issue a receipt or update status in external systems
>
> > [accordion] Pending payment
> >
> > Triggered 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 the event update when appropriate
>
> > [accordion] Payment message sent
> >
> > Triggered when the message with the payment button is sent successfully in the conversation.
> >
> > This output does **not** confirm the payment. It only indicates that the message with the payment button was sent successfully in the conversation.
> >
> > You can connect this output to an **AI Agent for post-send payment message support** to assist the user while they decide whether to open the checkout or if they have questions before paying.
> >
> > **Recommendations:**
> >
> > * resolve doubts 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 message with a payment button 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 the payment.
> >
> > ────────────────────
> > IMMEDIATE INTERRUPTION
> > ────────────────────
> > If the last received message or event 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 confirmation from the provider
> > - receipt, voucher, operation number, transaction ID, payment ID
> > - messages with the structure of a receipt, amounts, payment method, or final status
> >
> > When you detect any of these signals, stop your execution immediately. The payment result must be handled by the official outputs of the payment node, 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, answer briefly, clearly, and usefully.
> > - 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 that they will be routed according to the merchant's support 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 the checkout
> > - basic doubts about completing the payment form
> > - general guidance if the payment appears pending or rejected, without confirming the 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, you can try later or ask for help in this same chat."
> >
> > If the user says the payment was rejected:
> > "You can review the data entered 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 the payment. Do not respond if the message seems to be an automatic result or receipt. If it is just a user phrase, reply:
> > "Thanks. Let's wait for the payment confirmation to continue."
> >
> > ────────────────────
> > CLOSING
> > ────────────────────
> > If the user says they no longer need help, reply briefly:
> > "Perfect. If you need anything else, I'll be here."
> > ```
>
> > [accordion] Failed payment
> >
> > Triggered when the transaction was rejected, declined, denied, or not completed.
> >
> > Recommendations:
> >
> > * allow a controlled retry
> > * offer support or an alternative path
>
> > [accordion] Error
> >
> > Triggered by technical errors, provider errors, or communication failures during the creation or processing of the payment.
> >
> > Recommendations:
> >
> > * log the error
> > * show a contingency message
> > * retry in a controlled way and escalate if it persists

***

## How external confirmation works

When you select **External Confirmation Payment** in **Payment experience**, the node internally activates a conversational agent that guides the payer before generating the charge.

**1. The agent asks for the payment method**

The agent asks the payer which method they want to use: **PSE** or **Nequi**.

![WhatsApp conversation where the Wompi agent asks whether the payment will be made with PSE or Nequi](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-confirmacion-externa-seleccion-metodo.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=1dd1810d0a1570ceee370f2a8f5063c2)

The agent asks for the payment method

**2. The agent completes the missing details**

If the flow does not send **Cardholder first name**, **Cardholder last name**, **Document or tax ID number**, or **Email**, the agent asks for them in the conversation. With **PSE**, it also asks for the **document type** and the **bank**.

If the chosen method is **Nequi** and **Nequi phone number** was not sent, the agent asks for it specifically before continuing.

![WhatsApp conversation where the Wompi agent asks for the phone number to complete a Nequi payment](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-confirmacion-externa-solicitud-telefono-nequi.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=59769c4c70ca51f22995af06e31cec67)

The agent asks for the phone number tied to a Nequi payment when it is missing from the flow

**3. The agent confirms the details before continuing**

The agent shows a summary of the recorded details and asks the payer to reply **Confirm** to continue, or indicate what to correct. The summary varies by chosen method:

* **PSE:** payment method, holder, document, email, and **bank**.
* **Nequi:** payment method, holder, document, email, and **phone number**.

![WhatsApp conversation with the details summary for a PSE payment and the instruction to reply Confirm](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-confirmacion-externa-resumen-pse.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=1387ab8477cfaa88cb980376c43a7822)

Confirmation summary for a PSE payment

![WhatsApp conversation with the details summary for a Nequi payment and the instruction to reply Confirm](https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/images/integraciones/pagos/wompi-confirmacion-externa-resumen-nequi.png?fit=max\&auto=format\&n=1_JmEPMrIr40GNhs\&q=85\&s=bb66c0bf51af08be1dfa0990a102db61)

Confirmation summary for a Nequi payment

**4. The payer completes the payment outside WhatsApp**

Depending on the chosen method:

* **PSE:** the agent delivers a **Proceed to payment** button that opens a secure form to authorize the transfer from the selected bank.
* **Nequi:** the agent sends the payment request to the payer's Nequi app, who must open it and approve the payment.

<video controls preload="metadata" playsInline src="https://mintcdn.com/jelouai/1_JmEPMrIr40GNhs/assets/videos/integraciones/pagos/wompi/wompi-confirmacion-externa.mp4?fit=max&auto=format&n=1_JmEPMrIr40GNhs&q=85&s=966a0b6c098fe00ec0340d659dc6ed1e">
  Your browser does not support video playback.
</video>

External confirmation with Wompi

**5. Brain Studio continues the flow based on the result**

Wompi notifies the payment status via events and the node continues through the corresponding output (**Successful payment**, **Pending payment**, **Failed payment**, or **Error**), just like in the WebView experience.

> [!NOTE]
>
> With **External Confirmation Payment**, the payment is completed outside WhatsApp (in the PSE form or in the Nequi app). The node does not open a WebView inside the chat.

***

## Test payments in Sandbox

If Wompi is connected with **Sandbox** credentials, you can test the checkout with the test data published by Wompi.

> [!NOTE]
>
> In Sandbox, the payment is fictitious and does not move real money.

**1. Confirm Sandbox credentials**

Verify that Wompi is installed with credentials that have the prefixes `pub_test_`, `prv_test_`, `test_events_`, and `test_integrity_`.

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

In the **Advanced** tab, verify that the environment corresponds to development/test and confirm the **Payment experience** you want to test (**WebView Payment** or **External Confirmation Payment**).

**3. Complete buyer data**

With **WebView Payment**, use a test or controlled email and name in the **Buyer email** and **Buyer full name** fields.

With **External Confirmation Payment**, choose the **Person type** and complete (or let the agent ask for) **Cardholder first name**, **Cardholder last name**, **Document or tax ID number**, **Email**, and, if using Nequi, **Nequi phone number**.

**4. Test from WhatsApp**

Trigger the flow from WhatsApp.

* With **WebView Payment**, open the Wompi checkout and select a test payment method.
* With **External Confirmation Payment**, choose **PSE** or **Nequi** when the agent asks and follow the flow until confirmation.

**5. Validate the flow output**

Verify which output continues the flow:

* **Successful payment**
* **Pending payment**
* **Failed payment**
* **Error**

![Animation of the Wompi WebView checkout opened from WhatsApp to complete a Sandbox test payment](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/wompi-webview-whatsapp-sandbox.gif?s=a4b578345b793984fe113b4cee8a0ca1)

Wompi checkout in WhatsApp using Sandbox test data

***

## Sandbox test data

> [!NOTE]
>
> Test data only applies when the integration is installed with Sandbox credentials and the node runs in the test environment.

> [accordion] Cards
>
> To test card payments in Sandbox:
>
> * **Approved:** `4242 4242 4242 4242`
> * **Declined:** `4111 1111 1111 1111`
>
> Use any future expiration date and a 3-digit CVC.
>
> If you use another card, the final status may be `ERROR`.

> [accordion] Nequi
>
> To test Nequi payments:
>
> * **Approved:** `3991111111`
> * **Declined:** `3992222222`
>
> Any other number may generate a transaction with `ERROR` status.

> [accordion] PSE
>
> In the Wompi checkout, use the available test banks:
>
> * **Bank that approves:** generates an approved transaction.
> * **Bank that rejects:** generates a declined transaction.

> [accordion] Other payment methods
>
> Wompi also publishes test data for methods such as Botón Bancolombia, Bancolombia QR, Puntos Colombia, DaviPlata, BNPL Bancolombia, and other methods available depending on the account.
>
> Check the [official Wompi documentation on Sandbox test data](https://docs.wompi.co/docs/colombia/datos-de-prueba-en-sandbox/) to review the updated detail.

***

## Switch to production

If you installed Wompi with **development/Sandbox** credentials, you can start the switch to production from the **Advanced** tab of the Wompi node in **Canvas** or from the **Wompi** page in **Marketplace**.

In both cases, the same modal opens to enter production credentials and confirm the corresponding configuration.

Before operating with real payments:

* Make sure you have complete **Production** credentials: public key, private key, events secret, and integrity secret. Also confirm that the **Events URL** is correctly configured in Wompi.
* Use the **Switch to production** flow described in [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/wompi/conectar-en-brain-studio.md).
* Replace any test data in the node with real flow data.
* In production, use the buyer's real email and name.
* Run a real low-amount test before scaling.

***

## Important considerations

> [accordion] The environment depends on the installation
>
> If you installed Wompi with Sandbox credentials, test with test data. If you installed with Production credentials, use real data.

> [accordion] The Events URL must be configured
>
> The final payment status depends on the events that Wompi sends to Jelou. If the Events URL is not configured in the correct environment, the flow may not advance through the expected output.

> [accordion] Avoid duplicate payments
>
> In pending or failed scenarios, inform the user clearly before starting another payment attempt. Keep retries under control.

> [accordion] External confirmation happens outside WhatsApp
>
> With **External Confirmation Payment**, the payment does not happen inside WhatsApp. Your flow must handle **Pending payment** and the final outputs without assuming immediate confirmation, just like with other external confirmation providers.

> [accordion] Sandbox data does not work in Production
>
> Test cards, phones, and banks only apply in Sandbox. In production, the user must use real data.

***

## Next step

> [card] [Coverage and pricing](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/wompi/cobertura-y-precios.md)
>
> Review Wompi's availability, currency, payment methods, and commercial considerations.


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