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

# Obtaining credentials

> Create an app in your PayPal Developer dashboard, copy the Client ID and Client Secret, and configure the webhooks needed to connect in Brain Studio.

This guide walks you through preparing credentials for testing and production. It also covers configuring webhooks, which are required so that payment statuses return correctly to your Brain Studio flows.

> [!TIP]
>
> After completing this guide you will have Sandbox or Live credentials and webhooks configured to connect PayPal in Brain Studio.

***

## Before you begin

You need:

* A **PayPal account enabled for commercial and API use**
* Access to the **PayPal Business Dashboard** or the **PayPal Developer Dashboard**
* Permissions to **create applications** and **configure webhooks** in the account you will use

> [!NOTE]
>
> **VAT** and **Currency** are not obtained from PayPal: you enter them in Brain Studio during the installation of the integration, along with the **Client Id** and the **Client Secret**.

***

## Access PayPal Developer

You can access PayPal's developer environment in two ways:

1. From **PayPal Business Dashboard** → **Business Tools** → **API Credentials** (link or access to the API credentials area that takes you to Developer).
2. You can also enter directly from [PayPal Developer Dashboard](https://developer.paypal.com/dashboard/).

Sign in with the **same credentials** you use for your **PayPal Business** account.

***

## Environments in PayPal: Sandbox vs Live

* **Sandbox:** testing and development environment. Operations are not real payments.
* **Live:** production environment. Operations correspond to real payments.

The **Client ID** and **Client Secret** are **different** in each environment. Webhooks must be configured in the **app and environment** you will use from Brain Studio (Sandbox or Live).

> [!WARNING]
>
> If you install PayPal in Brain Studio with Sandbox credentials, the integration remains for testing. To process real payments, use Live credentials and configure the corresponding webhook.

***

## Part 1 — Get development credentials

In **Sandbox** you will create the app and credentials that you will use for testing before connecting the integration in Brain Studio with the **development/test** environment.

![Animation in PayPal Developer (Sandbox): go to Apps & Credentials, create an app (for example Jelou Test) with Merchant type, and copy Client ID and Secret](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-sandbox-obtener-credenciales.gif?s=a180e7a16a0d63a93ea995a991ad60ea)

PayPal Developer (Sandbox): Apps & Credentials, create an app, and copy Client ID and Secret

**1. Select Sandbox**

In the PayPal Developer Dashboard, use the environment selector and choose **Sandbox**.

**2. Go to Apps & Credentials**

Open the **Apps & Credentials** section for the Sandbox environment.

**3. Create an app**

Click **Create App**.

**4. Complete app data**

Indicate a **name** for the application.

In **Type**, select **Merchant**.

Create the app and wait until PayPal shows it in the list.

**5. Copy Client ID and Secret**

In the newly created app, copy the **Client ID**.

For the **Secret**, use the option to **reveal** or **show** the value and copy it in full.

> [!WARNING]
>
> Treat the **Client Secret** as sensitive information. Do not share it or paste it in public places.

***

## Part 2 — Configure development webhook

Jelou needs PayPal to send events to the webhook to reflect the payment status and keep Brain Studio flows aligned.

![Animation in PayPal Developer (Sandbox): add webhook, paste Jelou's URL, and select payment capture events](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-sandbox-configurar-webhook.gif?s=5d7a8285a149ac23e71283ffa5bde3db)

PayPal Developer (Sandbox): configure webhook with Jelou's URL and capture events

**1. Go to Sandbox Webhooks**

In the same Sandbox app, scroll to the **Sandbox Webhooks** section.

**2. Add webhook**

Click **Add Webhook**.

**3. Paste the webhook URL**

In the webhook URL field, paste exactly:

```text theme={null}
https://chat-payments.jelou.ai/link-webhook?provider=PAYPAL
```

**4. Select events**

Select the required events. At a minimum, include these payment capture events:

* Payment capture completed
* Payment capture declined
* Payment capture denied
* Payment capture pending
* Payment capture refunded

If you prefer a broader group, you can choose the **Payments & Payouts** category; in any case, make sure that at least the capture events listed above are covered.

**5. Save webhook**

Save the webhook and verify that it appears in the Sandbox app list.

> [!TIP]
>
> If the webhook is registered in the Sandbox app with Jelou's URL and the selected capture events, the development configuration is ready.

***

## Part 3 — Get production credentials

**Live** credentials are created separately and are used for real payments.

![Animation in PayPal Developer (Live): create an app, copy Client ID, and reveal Client Secret for production](https://mintcdn.com/jelouai/3D3ye1Wdwh66cTgk/assets/images/integraciones/pagos/paypal-live-obtener-credenciales.gif?s=f9e1c2bf0102aa2fe90f5242efc6811a)

PayPal Developer (Live): create an app and copy Client ID and Secret

**1. Switch to Live**

In the PayPal Developer Dashboard, change the environment selector to **Live**.

**2. Create Live app**

Go to **Apps & Credentials** in Live and create a new app with **Create App**.

Assign a **name** to the application.

**3. Copy Live Client ID and Secret**

Copy the **Client ID** from the Live app and reveal or show the **Secret** to copy it in full.

> [!WARNING]
>
> Live credentials process real payments. Use them only when your operation is ready for production.

***

## Part 4 — Configure production webhook

Configure the webhook in the **Live app** the same way as in Sandbox.

**1. Open webhooks in the Live app**

In the Live app, locate the webhooks section (equivalent to the Sandbox one) and add a new webhook.

**2. Use the same URL and events**

Use the same URL:

```text theme={null}
https://chat-payments.jelou.ai/link-webhook?provider=PAYPAL
```

Select the same minimum payment capture events:

* Payment capture completed
* Payment capture declined
* Payment capture denied
* Payment capture pending
* Payment capture refunded

Optionally, you can use the **Payments & Payouts** category, verifying that the previous capture events are included.

**3. Save**

Save the webhook and confirm that it is registered in the Live app.

> [!TIP]
>
> If you have **Client Id**, **Client Secret**, and a webhook configured in Live, you can switch PayPal to production in Brain Studio.

***

## Use credentials in Brain Studio

During the PayPal connection in Brain Studio, you will first complete the **Client Id** and **Client Secret**. Then you will define the **applied VAT** and the operating **Currency**.

* Use **Sandbox** credentials when connecting the integration in **development/test** mode.
* Use **Live** credentials when connecting in **production**.

Follow the [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/conectar-en-brain-studio.md) guide to complete the installation.

***

## Troubleshooting

> [accordion] I can't see Apps & Credentials
>
> Check that you are signed in to [PayPal Developer](https://developer.paypal.com/dashboard/) with the correct PayPal Business account and that the environment selector (**Sandbox** or **Live**) is the one you need. If you enter from the Business Dashboard, open Developer again and review the side menu.

> [accordion] I can't find the full Secret
>
> The **Secret** is only displayed when revealed or generated on the app screen. Copy it and store it in a secure credential manager; if you lose it, you will need to generate a new one from PayPal Developer following the options the interface provides.

> [accordion] I created Sandbox credentials but want to operate in production
>
> You must create a separate **Live app**, get the Live **Client ID** and **Client Secret**, and configure the **webhook** in Live with the same URL. In Brain Studio, use the **Switch to production** flow from the **Advanced** tab of the PayPal node in **Canvas** or from the PayPal page in **Marketplace**.

> [accordion] The flow doesn't move forward after the payment
>
> Verify that the webhook in the **same environment** you use in Brain Studio has the URL `https://chat-payments.jelou.ai/link-webhook?provider=PAYPAL` and the minimum capture events. Also check that the app is the one associated with the credentials you pasted in Brain Studio.

> [accordion] I selected the wrong events
>
> Edit the webhook in PayPal Developer or recreate it with the capture events listed in this guide (or the **Payments & Payouts** category if it covers those events). Save the changes and test the flow again.

> [accordion] How do I test a payment with Sandbox credentials?
>
> To test payments with Sandbox credentials, use a Personal test account from Testing Tools → Sandbox Accounts in PayPal Developer. The full step is documented in [Usage and configuration](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/uso-y-configuracion.md).

***

## Best practices

> [accordion] Client Secret security
>
> Do not share the **Client Secret**, do not upload it to public repositories, and rotate the value if you suspect it was exposed.

> [accordion] Keep Sandbox and Live separate
>
> Keep **Sandbox** and **Live** apps and webhooks clearly identified. Do not mix credentials from one environment with the webhook from the other.

> [accordion] Review webhooks by environment
>
> Every time you switch from Sandbox to Live (or vice versa), confirm that the webhook URL and events are correct in the app of the active environment.

***

## Next step

> [card] [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/paypal/conectar-en-brain-studio.md)
>
> Install PayPal using the Client Id, Client Secret, VAT, and Currency corresponding to the environment you will use.


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