Client Authentication failed in live mode in rest api

roopeshm46
Contributor
Contributor

Payment works with sandbox credentials. But in live mode, it throws error

 

PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/oauth2/token
PayPal\Core\PayPalHttpConnection : INFO: Response Status : 401
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"}

what i have done:
Double checked client, secret IDs
changed mode to live in my code.

I'm using personal account. First i created account(merchant account type) in developer account. then createad live rest api. Then coppied IDs to my code. I usesd PayPal-PHP-SDK library. Why should im getting these error?  Do i need to convert my personal to business account?

thanks for help


Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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