> ## 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 Payphone node to your Canvas flow, configure its fields, and test payments.

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

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

***

## Add the node to Canvas

**1. Open your flow in Canvas**

Open in Brain Studio the flow where you want to add Payphone payments.

**2. Add the Payphone node**

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

The exact location 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 charge point**

Connect the Payphone 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 **outputs** available 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
>
> ![Payphone node in Canvas with Payment data tab open in the side panel](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-nodo-datos-del-pago.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=c7d133f60651d751ed0d4df4928289f3)
>
> Payment data tab: personalization, amounts, and buyer details
>
> > [accordion] Personalization
> >
> > **Personalization** `boolean` (default: false)
> >
> > Enable it to define the messages that accompany your payment button.
> >
> > When active, it enables **Header**, **Body**, and **Footer** fields.
>
> > [accordion] Header
> >
> > **Header** `string`
> >
> > Title of the payment button message.
> >
> > Shown when **Personalization** is active.
>
> > [accordion] Body
> >
> > **Body** `string`
> >
> > Main text of the payment button message.
> >
> > Shown when **Personalization** is active.
>
> > [accordion] Footer
> >
> > **Footer** `string`
> >
> > Closing text of the payment button message.
> >
> > Shown when **Personalization** is active.
>
> > [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. Numbers only, in US dollars (USD).
>
> > [accordion] Tax-free amount
> >
> > **Tax-free amount** `number` *required*
> >
> > Tax-exempt amount. Numbers only. If not applicable, use `0`.
>
> > [accordion] Buyer first name(s)
> >
> > **Buyer first name(s)** `string` *required*
> >
> > Buyer's first name for checkout.
> >
> > In **Development**, you can use test data. In **Production**, use the real name captured in the flow.
>
> > [accordion] Buyer last name(s)
> >
> > **Buyer last name(s)** `string` *required*
> >
> > Buyer's last name for checkout.
> >
> > In **Development**, you can use test data. In **Production**, use the real last name captured in the flow.
>
> > [accordion] Buyer email
> >
> > **Buyer email** `string` *required*
> >
> > Buyer's email for checkout.
> >
> > In **Production**, use the real email captured in the flow.

> [tab] Advanced
>
> ![Payphone node with Advanced tab open showing environment, USD currency, and VAT](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-nodo-avanzado.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=18a2170a84af1ecba7c7defb942d0234)
>
> Advanced tab: environment, expiration, currency, and VAT
>
> > [accordion] Environment
> >
> > Shows whether Payphone 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 can start **Go to production**.
> >
> > > [!NOTE]
> > >
> > > Payphone uses **the same credentials** in both modes. The Brain Studio environment must match the **Test / Production** selector in your **Payphone Developer** application.
>
> > [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*
> >
> > Charge currency. For Payphone in Ecuador, the value is **USD**.
>
> > [accordion] VAT percentage
> >
> > **VAT percentage** `number`
> >
> > VAT percentage applied to the operation.
> >
> > Must be consistent with **applied VAT** configured during installation in [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/payphone/conectar-en-brain-studio.md).
>
> > [accordion] Payment metadata
> >
> > **Payment metadata** `string`
> >
> > Optional field for internal reference such as order ID, correlator, or user ID.

***

## Node outputs

Outputs appear on the Payphone node in Canvas. Connect them based on the result you want to handle in your flow.

> [accordion] Successful payment
>
> Triggered when Payphone confirms the transaction was approved.
>
> Recommendations:
>
> * confirm the order
> * send receipt or notification
> * update purchase status in your 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 unresolved

> [accordion] Payment message sent
>
> Triggered when the payment button message is sent successfully in the conversation.
>
> This output **does not** confirm payment. It only indicates the payment button was sent in WhatsApp.
>
> You can connect this output to a **post-send 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 opening the payment button
> * help if the WebView does not load
> * do not confirm payments from this output

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

> [accordion] Error
>
> Triggered 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 Payphone is connected in **test environment**, validate the flow before going to production.

> [!NOTE]
>
> In test mode, the charge depends on your **Payphone Developer** application being set to **Test** and the node showing **Development** environment. Payphone uses the same credentials in both scenarios.

**1. Confirm environment in Brain Studio**

Verify the integration was installed in **test environment** and the node shows **Development** in the **Advanced** tab.

**2. Align Payphone Developer**

In the **Payphone Developer** portal, select **Test** in your application's environment selector.

Review [Obtaining credentials — Test and production mode](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/payphone/obtener-credenciales.md#test-and-production-mode).

**3. Complete buyer data**

In **Payment data**, enter **Buyer first name(s)**, **Buyer last name(s)**, and **Buyer email** with test data or flow variables.

**4. Test from WhatsApp**

Trigger the flow from WhatsApp, open the Payphone WebView checkout, and complete a test payment.

**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 Payphone in **test environment**, you can start going to production from the Payphone node's **Advanced** tab in **Canvas** or from the **Payphone** page in **Marketplace**.

The modal only asks for **confirmation**: current credentials are kept. Details in [Connect in Brain Studio — Go to production](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/payphone/conectar-en-brain-studio.md#go-to-production).

Before operating with real payments:

* Switch your application in **Payphone Developer** to **Production**.
* Confirm **VAT percentage** and **Currency (USD)** on the node match your operation.
* Replace test data with real buyer data (first name, last name, email).
* Remember the **\$0.10 USD** cost per production transaction, deducted from your Brain Studio balance.
* Run a low-amount real payment test before scaling.

***

## Important considerations

> [accordion] Three points must align
>
> For charges to work correctly, align:
>
> 1. **Installation environment** in Brain Studio (test or production)
> 2. **Node environment** (Development or Production)
> 3. **Test / Production selector** in Payphone Developer
>
> If one does not match, the flow may fail or produce inconsistent results.

> [accordion] Same credentials always
>
> **Token** and **Store ID** do not change between test and production. Going to production in Brain Studio does not replace credentials; it only changes the operating mode.

> [accordion] Required buyer data
>
> Payphone requires buyer **first name**, **last name**, and **email** in **Payment data**. In production, use real data captured in the flow.

> [accordion] VAT and currency
>
> **Applied VAT** is defined at installation. The node's **VAT percentage** must be consistent. Currency is **USD**.

> [accordion] Pending payments
>
> If a payment is pending, inform the user and avoid starting a second charge until the status is resolved. The flow will continue through **Successful payment** or **Failed payment** when Payphone updates the result.

***

## Next step

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


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