- Go to https://developer.paypal.com/
- Click Log into Dashboard (upper right corner)
- Log in with your PayPal credentials
- Go to https://developer.paypal.com/developer/accounts/ and create a sandbox account with your email
- Go back to https://developer.paypal.com/
- Under REST API click Create app
- Enter the app name you want
- And confirm the details
Open your tokens.json
file. It should look like this:
{
"client_id": "INSERT_CLIENT_ID_HERE",
"client_secret": "INSERT_CLIENT_SECRET_HERE"
}
- Click the Production tab (instead of Sandbox)
- Copy the Client ID from the application page to replace
INSERT_CLIENT_ID_HERE
. - Click Show and copy the Secret to replace
INSERT_CLIENT_SECRET_HERE
.
You're ready!