2

我正在努力弄清楚为什么我似乎无法从沙盒中的 PayPal PayFlow Advanced 获得安全令牌。

我没有得到参数类型结果,而是得到一个带有错误的 html 页面:

Some required information is missing or incorrect. Please correct the fields below and try again.
Error: Your transaction can no longer be processed. Please return to the merchant's web site or contact the merchant. Error: 160

我遵循了几个代码示例,并通过 PayPal PayFlow 指南 PDF 做好了准备。我已经搜索了好几天,除了一篇说 curl 在他的服务器上被禁用的帖子之外,还没有找到关于错误 160 的任何内容。它在我的服务器上启用。我还看到了一篇文章(从 2012 年 12 月开始),关于在请求参数中按特定顺序设置一些参数。

我已经尝试了我找到的建议,但似乎没有任何改变结果。

为什么我得到一个 html 页面而不是结果?

网址:https://pilot-payflowlink.paypal.com

帖子字段:TRXTYPE=S&PARTNER=PayPal&VENDOR=xxxx&USER=xxxx&PWD=xxxx&INVNUM=xxxxxx&AMT=22.34&CREATESECURETOKEN=Y&SECURETOKENID=52895d03afc761.99691257

卷发选项:

$options = array(
    CURLOPT_RETURNTRANSFER => TRUE,
    CURLOPT_HEADER         => TRUE,
    CURLOPT_VERBOSE        => TRUE,
    CURLOPT_SSL_VERIFYHOST => FALSE,
    CURLOPT_SSL_VERIFYPEER => FALSE,
    CURLOPT_POST           => TRUE,
    CURLOPT_POSTFIELDS     => $info
);

任何帮助将不胜感激!!

仕龙

4

1 回答 1

0

This is similar to How do I get the Security Token for PayPal Payments Advanced gateway integration?

I couldn't get a token from from https://pilot-payflowlink.paypal.com but https://pilot-payflowpro.paypal.com seems to work just fine. That's also indicated by a careful reading of the documentation at https://developer.paypal.com/webapps/developer/docs/classic/payflow/gs_ppa_hosted_pages/ (but it's hardly obvious).

于 2013-12-12T00:09:46.757 回答