且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

贝宝客户端身份验证失败

更新时间:2023-12-04 14:10:46

搜索了几个小时后,我发现我需要另一个属性. 显然,您需要添加值为"live"的属性模式.这部分的文档不是很清楚,节点sdk github存储库中也没有任何实时示例代码.

After searching for a few hours i found out that i needed another property. Apparently you need to add the property mode with the value "live". The documentation isn't very clear on this part, neither are there any live example codes in the node sdk github repository.

我的配置现在如下所示:

My config now looks like the following:

{
    "port": 5000,
    "api": {
        "mode": "live",
        "host": "api.paypal.com",
        "port": "",
        "client_id": "-",
        "client_secret": "-"
    }
}