stopgg
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jan-19-2018
11:26 PM
Hello. I integrated system PayPal-PHP-SDK in the my site. Testing sandbox method - it's ok! I dont see error. After i switch system in live mode, starting test, generated site errors. Log paypal:
[20-01-2018 09:55:17] PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/oauth2/token [20-01-2018 09:55:18] PayPal\Core\PayPalHttpConnection : INFO: Response Status : 401 [20-01-2018 09:55:18] PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token. {"error":"invalid_client","error_description":"Client Authentication failed"}
I dont know how check and fix this error. Tell me please, how fix this error? Where, that check and run system in live mode? Any ansew save me. Thanks.
P.S. Sorry at my crooked english.
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan-22-2018
02:12 AM
Hello,
"invalid_client" - Did you change your "client_id" to the production / live version when you switched your system to live mode ?
Was my post helpful? If so, please give me a kudos!
"invalid_client" - Did you change your "client_id" to the production / live version when you switched your system to live mode ?
Was my post helpful? If so, please give me a kudos!
2 REPLIES 2

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan-22-2018
02:12 AM
Hello,
"invalid_client" - Did you change your "client_id" to the production / live version when you switched your system to live mode ?
Was my post helpful? If so, please give me a kudos!
"invalid_client" - Did you change your "client_id" to the production / live version when you switched your system to live mode ?
Was my post helpful? If so, please give me a kudos!
stopgg
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan-22-2018
03:31 AM
Thanks. I checked account and activate live mode. For my api generated new data (client_id and secret). I update config file and testing pay. It's working! Quest finished.

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
- Error message for obtaining access_token in REST APIs
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs
- PHP SDK error: broken content-length header in SDKs
- PayPal Express Error #10413 when people use a discount code on my Magento2 store in PayPal Payments Standard