Getting the 401 while trying the payment from Live box.. need help

Oxy1
Contributor
Contributor

Saying "401{"error":"invalid_client","error_description":"Client Authentication failed"}PayPal\Exception\PayPalConnectionException: Got Http response code 401 when accessing https://api.sandbox.paypal.com/v1/oauth2/token. in C:\xampp\htdocs\trader-api-v2\vendor\paypal\rest-api-sdk-php\lib\PayPal\Core\PayPalHttpConnection.php:202

Stack trace:"

Login to Me Too
2 REPLIES 2

MTS_Justin
Moderator
Moderator
Hello,

"401" means invalid client id.

You mentioned you're receiving this while trying the payment from a live box, but the endpoint where you're submitting the request is "https://api.sandbox.paypal.com/v1/oauth2/token."

Use the correct credentials with the correct endpoints to resolve the issue.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

MANJUDEVI999
Contributor
Contributor
Error Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token. Hello sir please help me I am facing this problem which I have written above sir i need client secret and client id of live sound box
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.