REST API returning invalid_client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I am attempting to test my first Paypal checkout application, following the guide. I am able to make test transactions on my site OK, but when I attempt to verify those transactions with the REST API (via Nodejs), I am returned HttpError: {"error":"invalid_client","error_description":"Client Authentication failed"}.
I have attempted the following fixes:
- verified that I am using sandbox credentials and that the app is reaching out to the sandbox environment
- "cycled" my app secret a few times as I saw a post here on the board saying that that can resolve similar issues
- successfully used my sandbox 'personal' account to make a credit card payment through checkouts to verify accounts work
- enabled "payment pro" option on my sandbox merchant account as I saw a post that this may resolve similar issues
- attempted to login to paypal with the sandbox merchant account to see if I need to do setup from that account rather than my own - pw not accepted
- checked the sandbox merchant's credentials on the site, they pointed to the client and secret that I am currently using so that seems to be correct.
Without more information or an account rep to reach out to I am totally blocked here 😞
Any help?
Thanks,
T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Merchant Technical Support Community.
If you are 100% certain that you are using the correct Sandbox Credentials and pointed to the Correct Sandbox Endpoint and you continue to receive invalid client the issue could be related to attempting a Direct Credit Card payment through Rest API.
I apologize, however, Direct Credit Cards through Rest API Payments was deprecated for new integrations a few years back, and the error message of invalid client id is the error that is returned when attempting a Direct Credit Card through Rest API, when it is not setup.
At this time if you need Direct Credit Cards for an app, we are recommending Braintree Direct. They have a node.js SDK available.
Thank you,
Jennifer
PayPal
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Order capture started to return 403 after account type was changed from personal to business in Sandbox Environment
- When trying to authentication to the REST API in production I get an invalid_client error in REST APIs
- AuthorizationsCapture checkout java sdk v2 and postman rest api return diff result in REST APIs
- Client Authentication Failed in REST APIs
- Orders created via JS SDK checkout, INVALID_RESOURCE_ID via REST API in REST APIs