本文介绍了贝宝REST API凭据无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用REST API在我的应用程序的NodeJS。
所有正在用良好的沙箱,但是当我用活证书更新,我得到:

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?

推荐答案

我不得不使用PayPalSDK /休息-SDK-的的NodeJS同样的问题,并解决与传递的配置参数(主机,CLIENT_ID,client_secret,...)也参数模式设置为生活。否则,库所使用的默认模式为沙盒,因此不可能用活的凭据。

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.

这篇关于贝宝REST API凭据无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 12:16