Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal REST API invalid credentials

Tags:

api

paypal

I use the REST api in my nodejs application. All is working good with sandbox but when i update with live credentials i get:

{ [Error: Response Status : 401]
  response:
   { error: 'invalid_client',
     error_description: 'The client credentials are invalid',
     httpStatusCode: 401 },
  httpStatusCode: 401 }

I updated my account to buisness but still not working, i use the live endpoint and Live credentials.

What should i do in order to make this work?

like image 345
Roleplay Baylife Avatar asked Dec 07 '22 00:12

Roleplay Baylife


1 Answers

I had the same issue using PayPalSDK/rest-sdk-nodejs and solved passing with the configuration parameters (host, client_id, client_secret, ...) also the parameter 'mode' set to 'live'. Otherwise the default mode used by the library is 'sandbox' and hence the impossibility to use the live credentials.

like image 192
matteo Avatar answered Dec 31 '22 19:12

matteo