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
Access PayPal Developer
You can access PayPal’s developer environment in two ways:- From PayPal Business Dashboard → Business Tools → API Credentials (link or access to the API credentials area that takes you to Developer).
- You can also enter directly from PayPal Developer Dashboard.
Environments in PayPal: Sandbox vs Live
- Sandbox: testing and development environment. Operations are not real payments.
- Live: production environment. Operations correspond to real payments.
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.
PayPal Developer (Sandbox): Apps & Credentials, create an app, and copy Client ID and Secret
Select Sandbox
Go to Apps & Credentials
Create an app
Complete app data
Copy Client ID and Secret
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.
PayPal Developer (Sandbox): configure webhook with Jelou's URL and capture events
Go to Sandbox Webhooks
Add webhook
Paste the webhook URL
Select events
- Payment capture completed
- Payment capture declined
- Payment capture denied
- Payment capture pending
- Payment capture refunded
Save webhook
Part 3 — Get production credentials
Live credentials are created separately and are used for real payments.
PayPal Developer (Live): create an app and copy Client ID and Secret
Switch to Live
Create Live app
Copy Live Client ID and Secret
Part 4 — Configure production webhook
Configure the webhook in the Live app the same way as in Sandbox.Open webhooks in the Live app
Use the same URL and events
- Payment capture completed
- Payment capture declined
- Payment capture denied
- Payment capture pending
- Payment capture refunded
Save
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.
Troubleshooting
I can't see Apps & Credentials
I can't see Apps & Credentials
I can't find the full Secret
I can't find the full Secret
I created Sandbox credentials but want to operate in production
I created Sandbox credentials but want to operate in production
The flow doesn't move forward after the payment
The flow doesn't move forward after the payment
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.I selected the wrong events
I selected the wrong events
How do I test a payment with Sandbox credentials?
How do I test a payment with Sandbox credentials?
Best practices
Client Secret security
Client Secret security
Keep Sandbox and Live separate
Keep Sandbox and Live separate
Review webhooks by environment
Review webhooks by environment