> ## 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 PayPal node to your flow in Canvas, configure its inputs, and test payments in Sandbox.

Once the integration is connected, the **PayPal** node becomes available in Canvas and lets you create payment experiences with **embedded WebView** 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/paypal/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 PayPal payment.

**2. Add the PayPal node**

Add **PayPal** 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 PayPal 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**.

![PayPal node in Canvas with the configuration side panel open](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-nodo-canvas-configuracion.jpg?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=336813f81fe97b6a8ef07058c4d298ee)

PayPal 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] Contains tangible product
> >
> > **Contains tangible product** `string`
> >
> > Defines whether the purchase includes a physical product that requires shipping data.
> >
> > If set to **Yes**, the node requires completing the shipping fields.
> > If set to **No**, those fields are not required.
> >
> > Use **Yes** only when the purchase includes a physical product that must be shipped.
> >
> > > [!NOTE]
> > >
> > > If you sell services, digital products, or charges without physical shipping, select **No**.
>
> > [accordion] Shipping country
> >
> > **Shipping country** `string`
> >
> > Required when **Contains tangible product** is set to **Yes**.
> > Indicates the shipping country for the product according to the buyer's address.
>
> > [accordion] Shipping state
> >
> > **Shipping state** `string`
> >
> > Required when **Contains tangible product** is set to **Yes**.
> > Indicates the shipping state or province according to the buyer's address.
>
> > [accordion] Shipping city
> >
> > **Shipping city** `string`
> >
> > Required when **Contains tangible product** is set to **Yes**.
> > Indicates the shipping city according to the buyer's address.
>
> > [accordion] Shipping address
> >
> > **Shipping address** `string`
> >
> > Required when **Contains tangible product** is set to **Yes**.
> > Indicates the shipping address of the product.
>
> > [accordion] Shipping postal code
> >
> > **Shipping postal code** `string`
> >
> > Required when **Contains tangible product** is set to **Yes**.
> > Indicates the shipping postal code according to the buyer's address.
>
> > [accordion] Payment reason
> >
> > **Payment reason** `string` *required*
> >
> > Describes the reason for the charge (for example, order, service, or internal reference).
>
> > [accordion] Taxable amount
> >
> > **Taxable amount** `number` *required*
> >
> > Amount on which the tax applies.
>
> > [accordion] Tax-free amount
> >
> > **Tax-free amount** `number` *required*
> >
> > Amount exempt from taxes.
> >
> > If it does not apply, use `0`.
>
> > [accordion] Buyer first name(s)
> >
> > **Buyer first name(s)** `string` *required*
> >
> > First name or names of the buyer.
>
> > [accordion] Buyer last name(s)
> >
> > **Buyer last name(s)** `string` *required*
> >
> > Last name or names of the buyer.
>
> > [accordion] Buyer email
> >
> > **Buyer email** `string` *required*
> >
> > Email of the buyer who will use the checkout.
> >
> > In **Sandbox**, it must be the email of a PayPal **Sandbox Personal** account.
> > In **production**, use the buyer's real email.
>
> ### Advanced
>
> > [accordion] Environment
> >
> > The **Environment** block shows whether PayPal 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 PayPal is already operating with production credentials.
> >
> > > [!WARNING]
> > >
> > > Do not switch to production without having **Live** credentials and a **Live** webhook configured in PayPal.
>
> > [accordion] Payment experience
> >
> > **Payment experience** `string` (default: WebView)
> >
> > Indicates that the PayPal checkout opens as an **embedded WebView** inside the conversational experience.
>
> > [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.
> >
> > It must be compatible with the integration configuration.
>
> > [accordion] VAT percentage
> >
> > **VAT percentage** `number` *required*
> >
> > Enter the VAT percentage that will be applied to the payment calculation.
>
> > [accordion] Payment metadata
> >
> > **Payment metadata** `string`
> >
> > Optional field to store an internal reference (for example, order ID or operation sequence).
>
> > [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]
> > >
> > > Use it for traceability, later validations, or flow decisions.

> [tab] Outputs
>
> > [accordion] Successful payment
> >
> > Triggered when PayPal confirms that the payment/capture completed correctly.
> >
> > Recommendations:
> >
> > * confirm the order
> > * issue a receipt or notification
> > * update purchase status in your systems
>
> > [accordion] Pending payment
> >
> > Triggered when the transaction is in pending status.
> >
> > Recommendations:
> >
> > * inform the user that the payment is under review/in process
> > * avoid creating a second charge while the status is being resolved
>
> > [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 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 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 payment fails, is rejected, denied, or not completed.
> >
> > Recommendations:
> >
> > * allow a controlled retry
> > * offer a support route 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

***

## Test payments in Sandbox

If PayPal is connected with **development/Sandbox** credentials, the checkout must be completed with a PayPal test buyer account.

The **Personal** account represents the buyer and the **Business** account represents the merchant in tests.

![Animation in PayPal Developer showing Sandbox Accounts, selecting a Personal account, and reviewing its data to use as a test buyer](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-sandbox-test-account.gif?s=de6c105c369ce799a3950b38725b312d)

PayPal Sandbox: use a Personal account to test payments

**1. Open Sandbox Accounts**

In PayPal Developer Dashboard, go to **Testing Tools** → **Sandbox Accounts**.

**2. Select a Personal account**

Choose a Sandbox **Personal** account and take its email.

That email will be the test buyer.

**3. Review or change the password**

Open the Personal account detail and use **Change password** if you need to update it.

To make internal testing easier, you can set a temporary password known to your QA team.

> [!WARNING]
>
> Do not use that password on real accounts or in production.

**4. Verify the development environment**

In the **Advanced** tab, confirm that PayPal is operating in Development before running the test.

**5. Configure the Buyer email in the node**

In the PayPal node, use the Sandbox Personal account email in **Buyer email** or map it from a test variable.

**6. Test from WhatsApp**

Trigger the flow from WhatsApp, open the PayPal WebView checkout, and sign in with the Sandbox Personal account.

![Animation of the PayPal WebView checkout opened from WhatsApp to complete a test payment with a Sandbox Personal account](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-webview-whatsapp-sandbox.gif?s=5b0e6e9c8b8ed897f0f74517a51588c6)

PayPal checkout in WhatsApp using a Sandbox Personal account

**7. Validate the flow output**

Verify which output continues the flow:

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

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

***

## Switch to production

If PayPal was installed with **development/Sandbox** credentials, you can start the switch to production from the **Advanced** tab of the PayPal node in **Canvas** or from the **PayPal** 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 **Live** credentials and **Live** webhook correctly configured.
* Use the **Switch to production** flow described in [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/conectar-en-brain-studio.md).
* Replace any test data in the node with real flow data.
* In production, use the buyer's real email.
* Run a real low-amount test before scaling.

***

## Important considerations

> [accordion] The environment depends on the installation
>
> If you installed PayPal with Sandbox/development credentials, test with a Sandbox buyer account.
>
> If you installed PayPal with Live/production credentials, use real buyer data.

> [accordion] The Buyer email is critical in Sandbox
>
> In testing, the **Buyer email** field must belong to a PayPal **Sandbox Personal** account.
>
> If you use a real email in Sandbox, the checkout may fail or not continue through the expected output.

> [accordion] Avoid duplicate payments
>
> In pending or failed scenarios, inform the user clearly before starting a new payment attempt.
>
> Keep a controlled retry logic to avoid repeated charges.

> [accordion] Webhooks and payment statuses
>
> The final payment status depends on the PayPal webhooks configured in the same environment as the credentials used by the node.

***

## Next step

> [card] [Coverage and pricing](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/cobertura-y-precios.md)
>
> Review availability, commercial conditions, and operating considerations by market.


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