Test your code end-to-end with PayPal Sandbox
The PayPal Sandbox is a self-contained, virtual testing environment that mimics the live PayPal production environment. It provides a shielded space where you can initiate and watch your application process the requests you make to the PayPal APIs without touching any live PayPal accounts and settings. Before you can integrate a PayPal product or solution, you must set up your development environment to get OAuth 2.0 client ID and secret credentials for the sandbox and live environments. You exchange these credentials for an access token that authorizes your REST API calls. To test your web and mobile apps, you create sandbox accounts. This Auth0 integration allows you to test your PayPal solution end-to-end.
The PayPal Sandbox social connection allows users to log in to your application using their PayPal Sandbox profile, which is a separate instance of the PayPal service, designed to allow you to isolate customization and development work from your production environment until you’re ready to deploy changes. To learn more, see the PayPal Sandbox Testing Guide.
By default, Auth0 automatically syncs user profile data with each user login, thereby ensuring that changes made in the connection source are automatically updated in Auth0. Optionally, you can disable user profile data synchronization to allow for updating profile attributes from your application.
Before you begin, sign up for and configure an account with PayPal. Upon account creation, you will have access to a PayPal Sandbox.
Set up app in PayPal Sandbox
Create an app in PayPal Sandbox and generate credentials for it, using PayPal's Get Credentials documentation. During this process, PayPal will generate a Client ID and Secret for your application; make note of these.
While setting up your app, use the following settings:
|Field||Value to Provide|
|Log In with PayPal||Enable, then under Advanced Options, select Full Name, Date of Birth, Timezone, Locale, and Language.|
Find your Auth0 domain name
If your Auth0 domain name is not shown above and you are not using our custom domains feature, your domain name is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus
.auth0.com. For example, if your tenant name were
exampleco-enterprises, your Auth0 domain name would be
exampleco-enterprises.us.auth0.com and your return URL would be
https://exampleco-enterprises.us.auth0.com/login/callback. (If your tenant is in the US and was created before June 2020, then your domain name would be
If you are using custom domains, your redirect URI will have the following format:
https://<YOUR CUSTOM DOMAIN>/login/callback.
You're ready to test your connection.