paypal从沙盒改变为生活

时间:2016-09-02 08:20:40

标签: paypal paypal-rest-sdk

我创建了自己的网站,并使用了沙箱,我已经将应用程序转为生存并更改了令牌。我收到以下错误消息,我可以看到http标头引用沙箱我在PHP SDK ini文件中更改了这个并将模式设置为live

错误

访问https://api.sandbox.paypal.com/v1/oauth2/token时获得了Http响应代码401

ini文件

 mode=live
 ;Service Configuration
 [Service]
 ;service.EndPoint="https://api.sandbox.paypal.com"
 ; Uncomment this line for integrating with the live endpoint 
 service.EndPoint="https://api.paypal.com"

我还能如何设置正确的https标题?

感谢

1 个答案:

答案 0 :(得分:1)

您需要从所有链接中删除所有sandbox。 例如,此链接https://api.sandbox.paypal.com将变为https://api.paypal.com

相关问题