Client Authentication failed - Switch to Live Mode

extraMusic
New Community Member

Hi,

 

i have build a simple shop and want to use my PayPal Plus Account, so users can pay per PayPal, Credi Card and Bank Account.

In Sandbox Mode everything works perfect, but when i switch to Live Mode an use the Live credentials for my app i got this:

 

{"error":"invalid_client","error_description":"Client Authentication failed"}

I have tried 3 different Apps now, but nothing worked.

 

Do i have to make an review process or something like that to use it in Live Mode?

Login to Me Too
2 REPLIES 2

fresonmx
Contributor
Contributor

Did you switch the environment to production?

 

paypal.Button.render({
env: 'production', 

client: {
sandbox: 'XXXX',
production: 'XXX'    
},

 

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

As @fresonmx mentioned, the most common cause of this issue is that your submitting the REST API request to sandbox endpoint instead of a production one.

For example - Payments API

// SANDBOX
https://api.sandbox.paypal.com/v1/payments/payment

// PRODUCTION
https://api.paypal.com/v1/payments/payment

Was my post helpful? If so, please give me a kudos!
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.