Seanno82
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-31-2020
09:07 PM
First time setup. Trying to test by running the following, but it returns: "error":"invalid_client","error_description":"Client Authentication failed"
curl -v POST https://api.sandbox.paypal.com/v1/oauth2/token \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "Authorization:Basic:<ClientID>:<Secret>" \
-d "grant_type=client_credentials"
Any insights would be greatly appreciated.
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
MTS_Stefan
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-08-2020
09:41 AM
Hello Sean,
The error means, that you are sending either the client ID or secret wrong.
Often that is caused by sending live credentials against the sandbox and vs as well as copy and paste issues.
When you are in the developer.paypal.com > my REST Apps, please look up on the sandbox side and do not copy spaces.
Regards,
Stefan
The error means, that you are sending either the client ID or secret wrong.
Often that is caused by sending live credentials against the sandbox and vs as well as copy and paste issues.
When you are in the developer.paypal.com > my REST Apps, please look up on the sandbox side and do not copy spaces.
Regards,
Stefan
2 REPLIES 2
Seanno82
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-03-2020
07:18 PM
MTS_Stefan
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-08-2020
09:41 AM
Hello Sean,
The error means, that you are sending either the client ID or secret wrong.
Often that is caused by sending live credentials against the sandbox and vs as well as copy and paste issues.
When you are in the developer.paypal.com > my REST Apps, please look up on the sandbox side and do not copy spaces.
Regards,
Stefan
The error means, that you are sending either the client ID or secret wrong.
Often that is caused by sending live credentials against the sandbox and vs as well as copy and paste issues.
When you are in the developer.paypal.com > my REST Apps, please look up on the sandbox side and do not copy spaces.
Regards,
Stefan
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- emails that are present on transactions report not present on REST API List Transactions in REST APIs
- I Have PayPal API Billing Authentication Failure Python-Flask in REST APIs
- Need Help Upgrading to PayPal complete payments in PayPal Upgrade Community
- INVALID ACCOUNT ERROR PARTNER REFERRAL API SELLER ONBOARD in Sandbox Environment