> ## 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 Stripe to your flow, configure the node, and continue based on the real payment status.

Once the integration is connected, Stripe is available in your workspace for use inside your flows and AI Agents.

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

***

## Three usage modalities

> [card] [Embedded WebView](#webview-embebido)
>
> Payment button with WebView checkout

> [card] [Native in chat](#nativo-en-chat)
>
> Card capture in conversation

> [card] [Advanced tools / MCP](#tools-avanzadas-mcp)
>
> Full API access via MCP

> [!TIP]
>
> This page covers all three modalities. Use the cards to go directly to the one you need.

***

## Embedded WebView

This is the **recommended modality to start with**. The user receives a link or payment button that opens the Stripe checkout in a WebView inside WhatsApp.

### Add the node to the Canvas

**1. Locate the integration in Marketplace**

In the left sidebar of Brain Studio, open the **Marketplace** folder.

If the integration is correctly connected, you will see **Stripe** listed as an available provider.

![Stripe visible in the Marketplace folder inside the Brain Studio sidebar](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/stripe-nodo-canvas.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=e11ba403cad69519a96b83d42d27cc93)

Stripe in Marketplace (sidebar)

**2. Drag the node to the Canvas**

Drag **Stripe** from the sidebar into your flow on the Canvas.

When you drop it, the node block will be created with its available outputs.

![Stripe node added to the Canvas showing its outputs](https://mintcdn.com/jelouai/R4qL5d7Hj6fxJl87/assets/images/integraciones/pagos/stripe-configuracion-nodo.png?fit=max\&auto=format\&n=R4qL5d7Hj6fxJl87\&q=85\&s=0bd0c2545eaaf275670033a11584515e)

Stripe tool with available outputs

**3. Open the configuration panel**

Select the node on the Canvas to open its configuration panel on the right side.

Complete the **Payment data** and **Advanced** tabs, and review the available **outputs** on the Canvas node.

### Configure the node in Canvas

> [tab] Payment data
>
> > [accordion] Save result as
> >
> > **Save result as** `string`
> >
> > Defines the name of the variable where Brain Studio will store the **complete JSON** response from the node.
> >
> > > [!TIP]
> > >
> > > Useful if you want to use the response later (logs, validations, traceability, or flow decisions).
>
> > [accordion] Payment type (default: payment)
> >
> > **Payment type** `string` (default: payment)
> >
> > Defines the type of charge.
> >
> > **Available values:** `payment` (one-time payment), `subscription` (subscription)
> >
> > > [!NOTE]
> > >
> > > If nothing is selected, `payment` will be used.
>
> > [accordion] Payment button expiration \[minutes]
> >
> > **Payment button expiration \[minutes]** `number`
> >
> > Defines how long the payment button is valid from the moment it is sent to the user.
> >
> > **Available values:** `10`, `20`, `30`, `60`
>
> > [accordion] Currency
> >
> > **Currency** `string` *required*
> >
> > Currency for the charge.
> >
> > > [!NOTE]
> > >
> > > The available currency depends on the country and configuration of your Stripe account.
>
> > [accordion] Payment reason
> >
> > **Payment reason** `string` *required*
> >
> > Descriptive text for the charge (for example, order number or product/service description).
> >
> > > [!TIP]
> > >
> > > Ideally use it with flow variables so it aligns with the conversation context.
>
> > [accordion] Payment metadata
> >
> > **Payment metadata** `string`
> >
> > Additional information for traceability or internal reference.
> >
> > > [!NOTE]
> > >
> > > You can use it for correlation with your order, reconciliation, or payment audit.
>
> > [accordion] Buyer email
> >
> > **Buyer email** `string` *required*
> >
> > The buyer's email. It must have been collected previously in the flow and passed here as a variable.
>
> > [accordion] Customize payment button text
> >
> > **Customize payment button text** `boolean` (default: false)
> >
> > If you select **Yes**, additional fields are enabled to customize the message that accompanies the payment button.
> >
> > **Fields enabled when activated:**
> >
> > * `Header` (required)
> >
> > * `Body` (required)
> >
> > * `Footer` (required)
> >
> > > [!NOTE]
> > >
> > > When this option is active, you can fully modify the message the user will see before opening the checkout.
>
> > [accordion] Header
> >
> > **Header** `string`
> >
> > Title of the message that accompanies the payment button.
>
> > [accordion] Body
> >
> > **Body** `string`
> >
> > Main text of the message that accompanies the payment button.
>
> > [accordion] Footer
> >
> > **Footer** `string`
> >
> > Closing text or disclaimer of the message that accompanies the payment button.

> [tab] Advanced
>
> > [accordion] Environment
> >
> > Shows whether Stripe runs in **Development** or **Production**.
> >
> > In **Development**, you will see the message *Your integration is in development mode. Move it to production when you are ready.* and can start the **Go to production** flow.
> >
> > > [!NOTE]
> > >
> > > Must match the environment you used to install Stripe (test or production credentials). See [Go to production](https://docs.jelou.ai/guides/integraciones/pagos/proveedores/stripe/conectar-en-brain-studio.md#go-to-production).
>
> > [accordion] Payment experience
> >
> > **Payment experience** `string`
> >
> > Defines how the charge is presented to the user.
> >
> > **Available values:** `WebView payment` (native tool), or other experiences enabled in your workspace.
> >
> > > [!TIP]
> > >
> > > To get started, use **WebView payment**. Native in-chat experience requires special enablement.
>
> > [accordion] Stripe Connect
> >
> > Enable this toggle if you installed Stripe via **Create a Stripe account** (guided registration in Mexico).
> >
> > > [!NOTE]
> > >
> > > If you connected with your own **Access Token** (existing account), leave this toggle off.

> [tab] Outputs
>
> > [accordion] Successful payment
> >
> > Activated when the provider confirms the transaction was processed successfully.
> >
> > This is the official payment confirmation point within the flow.
> >
> > Usage examples:
> >
> > * Issue invoice
> > * Activate subscription
> > * Release product or service
> > * Update order status in external system
>
> > [accordion] Pending payment
> >
> > Activated when the provider reports that the transaction is in a pending state.
> >
> > This may depend on the payment method and additional validations.
> >
> > Currently, monitoring the state change from pending to approved requires additional logic (for example, a webhook or subsequent status verification).
>
> > [accordion] Failed payment
> >
> > Activated when the transaction was rejected or declined.
> >
> > Recommendations:
> >
> > * Inform the user
> > * Allow retry
> > * Reuse the same Stripe node
>
> > [accordion] HTTP Error
> >
> > Activated when a communication error with the provider occurs (timeout, network, or invalid response).
>
> > [accordion] Error Code
> >
> > Activated when the provider returns an internal error code during payment creation or processing.
>
> > [accordion] Successful CTA delivery
> >
> > Activated when the payment button was sent successfully in the conversation.
> >
> > Indicates that the message with the button was displayed successfully in WhatsApp.
> >
> > Can be connected to an AI Agent that assists the user while they decide to complete the payment.
> >
> > **Example prompt (reference):**
> >
> > ```txt theme={null}
> > Act as a payment assistant.
> >
> > The user has just received a button to complete their payment.
> > Do not send proactive messages.
> > Only respond if the user asks a question.
> > Help them understand how to complete the payment and resolve related questions.
> > ```

***

## Native in chat

Stripe can also operate with a **[native card payment experience inside the chat](https://docs.jelou.ai/guides/integraciones/pagos/experiencias/pago-nativo.md)**.

> [!WARNING]
>
> This modality requires special enablement.
> If you want to activate it, contact us at [ayuda@jelou.ai](mailto:ayuda@jelou.ai).

***

## Advanced tools / MCP

In addition to Canvas usage via native tools, Stripe exposes a set of **advanced tools** that can be used in more technical implementations or custom flows.

These tools allow you to interact directly with Stripe services from your flow.

> [tab] Available tools
>
> > [accordion] Create Customer
> >
> > Creates a new customer record in your Stripe account.
> >
> > Customers can be associated with:
> >
> > * Payment methods
> > * Subscriptions
> > * Invoices
> >
> > Useful for:
> >
> > * Registering a customer before processing payments
> > * Implementing subscription models
> > * Managing payment history per customer
>
> > [accordion] Create Payment Intent
> >
> > Creates a **PaymentIntent** in Stripe.
> >
> > * The amount is sent in cents
> >   (example: `15000` = \$150.00)
> > * Returns:
> >   * `client_secret`
> >   * `payment_intent_id`
> >
> > Useful for:
> >
> > * Initiating a payment from a customer
> > * Custom integrations
> > * Advanced payment cycle control
>
> > [accordion] Query payment status
> >
> > Gets the current status of a payment by:
> >
> > * `PaymentIntent ID`
> > * `Charge ID`
> >
> > Returns details such as:
> >
> > * Status
> > * Amount
> > * Payment method
> > * Receipt URL
> >
> > Useful for:
> >
> > * Verifying if a customer completed the payment
> > * Implementing additional validations
> > * Post-transaction queries
>
> > [accordion] List transactions
> >
> > Lists recent balance transactions in the Stripe account:
> >
> > * Charges
> > * Refunds
> > * Transfers
> > * Payouts
> >
> > Supports:
> >
> > * Date filter (Unix timestamps)
> > * Pagination
> >
> > Useful for:
> >
> > * Reviewing recent activity
> > * Accounting reconciliation
> > * Movement audit
>
> > [accordion] Process refund
> >
> > Processes a full or partial refund of a charge or PaymentIntent.
> >
> > Available options:
> >
> > * Specific amount (for partial refunds)
> > * Reason (`duplicate`, `fraudulent`, `requested_by_customer`)
> >
> > Refunds usually appear in the customer's account within 5–10 business days.
> >
> > Useful for:
> >
> > * Post-sale management
> > * Cancellations
> > * Return policies


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