[REST API] ERROR 401, invalid client

stopgg
Contributor
Contributor

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. Smiley Sad

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Justin
Moderator
Moderator
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!

View solution in original post

Login to Me Too
2 REPLIES 2
Solved

MTS_Justin
Moderator
Moderator
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!
Login to Me Too

stopgg
Contributor
Contributor

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.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.