Skip to main content
Connect your AI agent to a user’s PayPal account to automate the sending of invoices, process payments, and manage recurring subscription billing.

Connect PayPal to Auth0

1

PayPal setup

  1. Visit the PayPal Developer account page and sign up.
  2. Create a new App in the PayPal Developer Console.
  3. Give the app a name and choose whether it’s for test (Sandbox) or live.
  4. Click Create App to see the app detail page.
  5. Copy the Client ID and Client Secret.
  6. Enable the appropriate the features.
  7. Click Advanced Settings and configure the Return URL.
    • Return URL: https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  8. Select scope attributes for OpenID connect (OAuth2) protocol.
  9. Click Save to save changes.
To learn more about setting up PayPal, read the PayPal Developer documentation.
2

Auth0 setup

Token Vault configuration example

To configure the Token Vault for your PayPal connection, you can use the following code snippet in your application:

Next steps