> ## 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.

# Connect in Brain Studio

> Install PayPal in Brain Studio, configure its credentials, and use the payment node in your flows.

Connect PayPal to enable the provider in your workspace and make the payment node available in Brain Studio with an **embedded WebView** experience.

***

## Before you begin

Make sure you have:

* A **PayPal account enabled for commercial and API use**
* The **Client Id**
* The **Client Secret**
* The **applied VAT** that the integration will use
* The **Currency** in which the payment will be made
* The correct credentials for your environment: **development/test** or **production**

> [!TIP]
>
> To obtain or review credentials, follow [Obtaining credentials](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/obtener-credenciales.md).

> [!WARNING]
>
> For the checkout to open inside WhatsApp (embedded WebView), the account must be **WhatsApp Business verified**.
>
> If it is not verified, the checkout will open in the device's external browser.

***

## Ways to start the installation

You can start the PayPal installation from different points in Brain Studio. All paths use the same provider configuration.

> [tab] Jelou Agent
>
> Ask Jelou Agent to add payments with PayPal while you build or adjust a flow.
>
> Examples:
>
> * "Add payments with PayPal to this flow"
> * "I need a PayPal checkout for this case"
>
> Jelou Agent detects PayPal as an available provider from Marketplace and triggers the assisted installation flow.

> [tab] Marketplace
>
> Open **Marketplace**, search for **PayPal** in **Payments & Processing** or use the search bar.
>
> Then press **Connect** or **Install** to start the installation flow.

> [tab] Payments Node
>
> From the **Canvas** toolbar, open the **Payments** node.
>
> Inside the **Payments** node, you can see **PayPal** as an available provider. If it is not connected yet, press **Install** to start the same connection flow used by Marketplace, Jelou Agent, and templates.
>
> ![Payments node in Canvas showing PayPal as an available provider with the Install option](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-pagos-instalar.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=81273915560d0b38b523a1bf71c90754)
>
> PayPal available to install from the Payments node in Canvas

> [tab] Templates
>
> Some Brain Studio templates may include a payment configuration.
>
> While creating the template, Brain Studio may ask you to choose a payment provider and connect PayPal as part of the configuration flow.

> [!NOTE]
>
> All installation paths use the same provider configuration. What changes is where you start the flow.

***

## Common installation flow

Regardless of the entry point, the shared process is the following.

> [!NOTE]
>
> The first modal asks you to choose **Try with Jelou** or **Connect my account**.
>
> * **Try with Jelou:** installs the gateway in [test mode](https://docs.jelou.ai/guides/integraciones/pagos/modo-prueba.md), without an account or your own credentials.
> * **Connect my account:** uses your test or production credentials. Continue with the steps on this page.

**1. Choose test or production credentials**

Brain Studio will ask you to select whether you will connect PayPal with **test credentials** or **production credentials**.

In PayPal, these credentials correspond to the **Sandbox** or **Live** environments.

![Brain Studio modal to choose between test credentials or production credentials when connecting PayPal](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-conectar-seleccion-ambiente.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=fce2b618ed3471a7c99feed64fc8ffb0)

Environment selection to connect PayPal

**2. Complete the credentials**

Complete the modal with:

* **Client Id**
* **Client Secret**

![Brain Studio modal to enter PayPal's Client Id and Client Secret](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-modal-credenciales.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=575dbeff1feae3a66b1981e7348fa55d)

Credentials required to connect PayPal

**3. Configure applied VAT and Currency**

Define the **applied VAT** that the integration will use and select the operating **Currency**.

**4. Confirm connection**

Confirm the connection. Brain Studio will save the configuration and make **PayPal** available in your workspace.

**5. Use PayPal from the Payments node in Canvas**

After installing, you can use PayPal from the **Payments** node in **Canvas**, regardless of whether you started the installation from Jelou Agent, Marketplace, the Payments node, or a template.

***

## Development vs production credentials

PayPal separates credentials by environment:

* **Sandbox:** credentials for testing without processing real payments.
* **Live:** credentials for processing real payments.

PayPal uses different **Client Id** and **Client Secret** for each environment. The **applied VAT** and **Currency** are defined during the connection.

To obtain PayPal credentials, see [Obtaining credentials](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/obtener-credenciales.md).

> [!WARNING]
>
> Development credentials do not process real payments. Before operating in production, you must connect PayPal using production credentials.

> [!TIP]
>
> If you connect PayPal with development/test credentials, you will need a PayPal Sandbox Personal account to complete fictitious payments during testing. See [Usage and configuration](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/uso-y-configuracion.md).

***

## Switch to production

If you installed PayPal with **development/test** credentials, you can use the payment node for testing. To operate with real payments:

**1. Open Switch to production**

You can start the change from:

* The **advanced sidebar** of the PayPal node in **Canvas**
* The **PayPal** page in **Marketplace**

In both cases, the same modal opens to switch the integration to production.

**2. Complete production Client Id and Client Secret**

Enter the production **Client Id** and **Client Secret**.

![Brain Studio modal to enter PayPal's production Client Id and Client Secret](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-pasar-a-produccion-credenciales.png?fit=max\&auto=format\&n=3D3ye1Wdwh66cTgk\&q=85\&s=4033816d2e7f6c982c8093acf9fdf649)

Production credentials to switch PayPal to production

**3. Confirm applied VAT and Currency**

Review and confirm the **applied VAT** and the **Currency** that the integration will use in production.

**4. Confirm the change**

Confirm the action. From that moment on, the integration operates with production credentials.

***

## Change credentials

* To switch from **development/test** to **production** with the same installation, use the **Switch to production** section.
* To **rotate credentials** or **replace the configuration**, disconnect PayPal and reinstall it following the **common installation flow** on this page.

***

## Next step

Once the integration is connected, continue with:

> [card] [Usage and configuration](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/uso-y-configuracion.md)
>
> Configure the payment node and continue the flow based on the WebView payment result.


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