paypal快速结账不使用沙盒

时间:2016-01-27 15:07:32

标签: php paypal paypal-ipn paypal-sandbox

我尝试使用向导https://devtools-paypal.com/integrationwizard/

集成paypal express checkout

好吧,如果我将它与真实账户一起使用,但是如果我输入沙箱帐户凭据脚本显示没有错误:" SetExpressCheckout API调用失败。错误消息:错误代码:"

我已经检查了什么返回我的脚本的$ resArray。我很好:

  

阵列([TOKEN] => EC-2FP9406707909490N [TIMESTAMP] => 2016-01-27T14:52:37Z [CORRELATIONID] => b6329a695bbf3 [ACK] =>成功[VERSION] => 93 [BUILD] => 18308778)

some_struct get_sth;
get_sth = *(some_struct+i);
other_array[a][b] = get_sth.table[a][b];

但是,如果我将真实替换为沙箱凭证,则$ resArray将返回空数组。

  

Array()SetExpressCheckout API调用失败。详细错误消息:   短错误消息:错误代码:错误严重性代码:

可能出错?

1 个答案:

答案 0 :(得分:1)

您必须在API通话时间检查您的SSL认证。 Paypal最近更改了API。现在它在沙盒中进行实验。在2016年6月之后,没有SSL,沙箱和直播两个凭证都无法正常工作。有关详细信息,请检查:https://devblog.paypal.com/upcoming-security-changes-notice/#tls