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

# Getting credentials

> Create the developer user, configure the application in Payphone, and obtain the Access Token and Store ID to connect the integration in Brain Studio.

## When do you need this guide?

You need it before connecting **Payphone** in Marketplace, when Brain Studio asks you for these two credentials:

* **Access Token**
* **Store ID**

> [!NOTE]
>
> Payphone uses two separate portals during this process:
>
> * **Business Portal**: where you manage users and stores
> * **Developer Portal**: where you create the application and obtain the Access Token

> [!WARNING]
>
> The **Access Token** and the **Store ID** are only available after Payphone approves the **company request**. You will not be able to complete the connection in Brain Studio until that approval occurs.

> [!TIP]
>
> By the end of this guide you will have the **Access Token** and the **Store ID** ready to connect Payphone in Brain Studio.

> [!NOTE]
>
> When installing the integration in Brain Studio, you will complete a **3-step** modal: credentials (Token and Store ID), **environment** (test or production), and **applied VAT**. **USD** currency appears in the node's **Advanced** tab.

***

## Before you begin

You need:

1. An **active Payphone Business account**
2. At least one **active store** in that account
3. Access to the Payphone developer portal

If you don't have an account yet, you can create one here:

* [Create a Payphone account](https://appstore.payphonetodoesposible.com/registerini)

Portals you will use during this guide:

* [Payphone Business](https://appstore.payphonetodoesposible.com/login)
* [Payphone Developer](https://appdeveloper.payphonetodoesposible.com/login)

***

## Steps to obtain credentials

**1. Log in to Payphone Business**

Enter the **Payphone Business** portal with your merchant account.

From here you will:

* create the developer user
* assign it to the store you will use in the integration

**2. Create a developer user**

In the Business portal side menu, go to **Administration → Users** and create a new user with a developer profile.

Complete at least:

* **First name**
* **Last name**
* **Email address**
* **Password**
* **Assigned store**

> [!WARNING]
>
> The developer user must be assigned to the correct store. If it is not assigned, you will not be able to operate the integration correctly or obtain the Store ID associated with that store.

![New user form in Payphone Business with the Developer role selected and the store assigned](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-crear-usuario-desarrollador.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=5a6fd3a175bd812cdc9af0f05b0a5572)

User creation form in Payphone Business — select the Developer role and assign the store

**3. Log in to the developer portal**

Using the developer user you just created, enter the **Payphone Developer** portal.

Use this link:

* [Log in to the Developer portal](https://appdeveloper.payphonetodoesposible.com/login)

> [!NOTE]
>
> This portal is independent from Payphone Business. You must sign in with the **developer user**, not with the main merchant account.

**4. Create an application**

Inside the developer portal, create a new application.

Complete the basic configuration:

* **Application name**
* **Description**
* **Categories**
* **Development platform**: you can select **Java**
* **Application type**: **Web**

> [!TIP]
>
> Although the development platform field is present, for this integration what matters is that the application type is **Web**.

**5. Configure domain and response URL**

In the application configuration, enter these values exactly as shown:

| Field | Value |
| - | - |
| **Web domain** | `https://chat-payments.jelou.ai/` |
| **Response URL** | `https://chat-payments.jelou.ai/link-webhook?provider=PAYPHONE` |

> [!WARNING]
>
> These values are required for the Jelou integration. If you configure a different domain or URL, the checkout will not be able to return the payment status correctly to Brain Studio.

![Create Application form in the Payphone Developer portal with Type Web, chat-payments.jelou.ai domain and response URL configured](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-crear-aplicacion.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=53e1a75bce2ff505a3bf048e52c2c2a7)

Application creation form in Payphone Developer — verify that the Type is Web and that the Web domain and Response URL match exactly the values shown

**6. Create the company request**

In the developer portal, go to **Solicitud de compañía** (Company Request).

If you don't have a request yet, create a new one and enter:

* **RUC** of the company
* **Reason** for the request

You can use a text like this:

```txt theme={null}
Please assign to integrate payment link through third-party app.
```

![Create Request modal in the Payphone Developer portal with RUC and Reason fields](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-solicitud-empresa.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=22bd777bbf64ec6c82a32eae0fcef437)

Company request modal in Payphone Developer — enter your company RUC and the reason before saving

> [!WARNING]
>
> You must wait for this request to be approved before the **Access Token** becomes available. Without approval, you will not be able to complete the connection in Brain Studio.

**7. Get the Access Token**

Once the request is approved, return to the developer portal and open the application you configured.

From there you can copy the **Access Token**.

![Company requests table in Payphone Developer showing approved status and the Ver todo el token button](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-token.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=479e072acef6cc8a34aa392167ad4cfe)

Approved request in Payphone Developer — click 'Ver todo el token' to copy the full Access Token

**8. Get the Store ID**

Inside the **Payphone Developer** portal, in the **Solicitud de compañía** (Company Request) section, click the action button of the approved request.

The list of associated stores will open. Copy the **StoreId** of the store you assigned to the developer user.

![Store list modal in Payphone Developer showing the StoreId column](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/payphone-store-id.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=5b39e67623b446bab9dea94040f290f3)

Store list in Payphone Developer — copy the StoreId of the store assigned to the developer user

> [!TIP]
>
> Once you have the **Access Token** and the **Store ID**, you can proceed with the connection in Brain Studio.

***

## Test and production mode

Payphone uses the **same credentials** (Access Token and Store ID) for testing and production.

* You do not need to generate a separate token
* The environment is controlled from the **application configuration in the developer portal**

> [!NOTE]
>
> Inside the Payphone Developer portal, you can switch between **Production** and **Test** using the environment selector in the application.
>
> This change affects how payments are processed, but **does not change the credentials used in Brain Studio**.

> [!TIP]
>
> In Brain Studio you also define the environment when installing the integration (modal step 2) and in the node's **Advanced** tab. All three must align: installation, node, and Payphone Developer.
>
> See [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/payphone/conectar-en-brain-studio.md).

> [!WARNING]
>
> Before testing or going to production, make sure the environment selected in Payphone Developer matches Brain Studio and the scenario you are validating.

***

## Troubleshooting

> [accordion] The company request is still pending
>
> If you already submitted the request and still cannot see the Access Token:
>
> * check the request status in the developer portal
> * confirm that the RUC and reason were entered correctly
> * verify that the application has the correct domain and response URL configured
>
> If approval takes longer than expected, contact Payphone support.

> [accordion] I can't find the Store ID
>
> The **Store ID** is obtained from the **Payphone Developer** portal, in the **Solicitud de compañía** (Company Request) section.
>
> Click the action button of the approved request to see the list of associated stores and copy the **StoreId** of the store assigned to the developer user.

> [accordion] The token doesn't work in Marketplace
>
> Verify that:
>
> * the company request has already been approved
> * you copied the full Access Token
> * the Store ID corresponds to the correct store
> * the developer user is assigned to that store

***

## Best practices

> [accordion] Protect your credentials
>
> * Do not share the **Access Token** or the **Store ID**
> * If you need to rotate the token, do it from the developer portal
> * Avoid saving these credentials in public documents or repositories

***

## Related articles

> [card] [Connect in Brain Studio](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/payphone/conectar-en-brain-studio.md)
>
> Connect Payphone in Marketplace using the Access Token and Store ID.

> [card] [Usage and configuration](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/payphone/uso-y-configuracion.md)
>
> Configure the Payphone node and handle payment states inside the flow.


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