无法连接到主机输入服务器Uri = https://pilot-payflowpro.paypal.com:443

时间:2015-05-04 19:06:37

标签: paypal

获得针对非常基本的PayPal付款高级电话的回复:

交易失败!请使用其他付款方式重试。 (服务器响应如下)

Array
(
    [STATE] => CA
    [RESPMSG] => Failed to connect to host Input Server Uri = https://pilot-payflowpro.paypal.com:443
    [SHIPTOSTREET] => 1234 Park Ave
    [SHIPTOSTATE] => CA
    [STREET] => 123 Main St.
    [SHIPTOCITY] => San Jose
    [LASTNAME] => Doe
    [FIRSTNAME] => John
    [SHIPTOZIP] => 95101
    [SECURETOKEN] => 8dov2tKpHS02bZjINimuKFAEV
    [AMT] => 1.00
    [SHIPTOLASTNAME] => Smith
    [SECURETOKENID] => MySecTokenID-5547c1b32dc2b
    [CITY] => San Jose
    [SHIPTOFIRSTNAME] => Jane
    [ZIP] => 95101
    [RESULT] => -1
    [TRXTYPE] => A
)

我正在使用我从paypal文档页面获得的PHP代码示例(实际上它链接到github仓库),虽然我似乎无法在paypal有你的无关文档的荒谬复杂的荒野中找到它跋涉完成最简单的任务。

它是一个基本的iframe演示,布局c。该服务是debian linux发行版

更新:以下是我过去常常使用的原始文档参考的链接:https://ppmts.custhelp.com/app/answers/detail/a_id/929

请注意,我正在使用第6节中的“试用演示”zip(php)。演示和文档显示iframe没有导航网址,这在评论中的建议中说明了应该是。

在将iframe网址更新为试用网址时,我现在收到新的超时错误:

Array
(
    [STATE] => CA
    [TYPE] => A
    [ACCT] => 1111
    [ZIPTOSHIP] => 95101
    [BILLTOLASTNAME] => Doe
    [BILLTONAME] => John Doe
    [SHIPTOCITY] => San Jose
    [LASTNAME] => Doe
    [PNREF] => B10P7E8A02A7
    [TENDER] => CC
    [METHOD] => CC
    [SHIPTOZIP] => 95101
    [ADDRESSTOSHIP] => 1234 Park Ave
    [BILLTOFIRSTNAME] => John
    [AMT] => 1.00
    [SHIPTOCOUNTRY] => US
    [TRANSTIME] => 2015-05-05 10:40:36
    [NAMETOSHIP] => Jane Smith
    [ZIP] => 95101
    [BILLTOCOUNTRY] => US
    [EXPDATE] => 1215
    [STATETOSHIP] => CA
    [RESPMSG] => Timeout waiting for Processor response
    [COUNTRY] => US
    [SHIPTOSTATE] => CA
    [BILLTOZIP] => 95101
    [SHIPTOSTREET] => 1234 Park Ave
    [BILLTOCITY] => San Jose
    [TAX] => 0.00
    [BILLTOSTATE] => CA
    [CARDTYPE] => 0
    [FIRSTNAME] => John
    [AVSDATA] => XXN
    [CITYTOSHIP] => San Jose
    [SECURETOKEN] => 88saMEY6aCkyh09bhzHgE1w1i
    [SECURETOKENID] => MySecTokenID-5549007e7d1fe
    [CITY] => San Jose
    [NAME] => John Doe
    [COUNTRYTOSHIP] => US
    [BILLTOSTREET] => 123 Main St.
    [RESULT] => 104
    [TRXTYPE] => A
    [ADDRESS] => 123 Main St.
)

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:3)

当您处于测试环境中时,您需要确保在创建安全令牌后使用端点“https://pilot-payflowlink.paypal.com”。

除此之外,如果您在使用卡片“4111111111111111”尝试使用之前链接中的任何卡时获得“等待主机错误的时间”,它应该可以正常工作。

http://www.getcreditcardnumbers.com/