【问题标题】:paypal changing from sandbox to live贝宝从沙盒更改为实时
【发布时间】:2017-01-10 06:52:22
【问题描述】:

我已经创建了我的网站并开始使用沙盒,我已经启动了应用程序并更改了令牌。我收到以下错误消息,我可以看到 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 标头?

谢谢

【问题讨论】:

    标签: paypal paypal-rest-sdk


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-01
      • 2012-10-12
      • 2015-02-04
      • 2018-01-21
      • 2023-03-25
      • 2018-07-29
      • 2013-08-24
      • 2011-12-16
      相关资源
      最近更新 更多