Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

401 invalid_client when processing paypal payment using node SDK on production system

I have a weird situation going on, I always get a 401 invalid_client error when trying to make a payment on my production system using the node SDK. The credentials are a 100% correct, mode property is set to live and this config works on localhost - I can process the payment with no issues. So sandbox works on production and localhost, live works only on localhost. ENV variables are exactly the same when I simulate live mode on localhost. The debug id I get from PayPal is bc930e48644c9. Does anyone have a clue what is going on here?

like image 903
user871784 Avatar asked Sep 15 '26 22:09

user871784


1 Answers

Issue already set:

https://github.com/paypal/PayPal-node-SDK/issues/320

Seems to occur after the v1.8.0 update of the node sdk. According to the description a rollback of the npm package to v1.7.1 seems to work.

EDIT: Just confirmed that by my self. Works.

like image 180
haemse Avatar answered Sep 17 '26 23:09

haemse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!