cancel
Showing results for 
Search instead for 
Did you mean: 

[REST API] ERROR 401, invalid client

Options
Go to solution
stopgg
Contributor
Posted on

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

1 ACCEPTED SOLUTION

Accepted Solutions
Solved

[REST API] ERROR 401, invalid client

Options
Go to solution
MTS_Justin
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

2 REPLIES 2
Solved

[REST API] ERROR 401, invalid client

Options
Go to solution
MTS_Justin
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!

[REST API] ERROR 401, invalid client

Options
Go to solution
stopgg
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.

Haven't Found your Answer?

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