Skip to main content
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.
If you have not installed the integration yet, follow Connect in Brain Studio 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

PayPal node with the configuration side panel open


Configure the node

Payment data

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.
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.
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.
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.
If you sell services, digital products, or charges without physical shipping, select No.
string
Required when Contains tangible product is set to Yes. Indicates the shipping country for the product according to the buyer’s address.
string
Required when Contains tangible product is set to Yes. Indicates the shipping state or province according to the buyer’s address.
string
Required when Contains tangible product is set to Yes. Indicates the shipping city according to the buyer’s address.
string
Required when Contains tangible product is set to Yes. Indicates the shipping address of the product.
string
Required when Contains tangible product is set to Yes. Indicates the shipping postal code according to the buyer’s address.
string
required
Describes the reason for the charge (for example, order, service, or internal reference).
number
required
Amount on which the tax applies.
number
required
Amount exempt from taxes.If it does not apply, use 0.
string
required
First name or names of the buyer.
string
required
Last name or names of the buyer.
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

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.
Do not switch to production without having Live credentials and a Live webhook configured in PayPal.
string
default:"WebView"
Indicates that the PayPal checkout opens as an embedded WebView inside the conversational experience.
number
Defines how long the payment button remains valid after being sent.The available values depend on the configuration visible in Brain Studio.
string
required
Defines the currency of the charge.It must be compatible with the integration configuration.
number
required
Enter the VAT percentage that will be applied to the payment calculation.
string
Optional field to store an internal reference (for example, order ID or operation sequence).
string
Defines the name of the variable where Brain Studio will store the full JSON response from the node.
Use it for traceability, later validations, or flow decisions.

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

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

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

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.
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.
In pending or failed scenarios, inform the user clearly before starting a new payment attempt.Keep a controlled retry logic to avoid repeated charges.
The final payment status depends on the PayPal webhooks configured in the same environment as the credentials used by the node.

Next step

Coverage and pricing

Review availability, commercial conditions, and operating considerations by market.