我是PHP & PayPal的新手,并试图根据下面的PayPal文章找出是否需要升级TLS:https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ1914
为了验证系统,我使用tlstest.paypal.com端点,如下所示:
$header = '';
$header .= "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: tlstest.paypal.com\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$paypaladdr = 'tlstest.paypal.com';
$fp = fsockopen('ssl://'.$paypaladdr, 443, $errno, $errstr, 30);我马上收到以下答复:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 20
Connection: keep-alive然后再过几分钟(6-8分钟),我得到的是: PayPal_Connection_OK
你知道为什么要花这么长时间才能收到PayPal_Connection_OK消息吗?我希望生产端点不会发生这种情况。我可以走了吗?
提前谢谢你。
发布于 2017-05-03 06:08:28
只要从connection_ok服务器获得PayPal,连接就可以进行。
谢谢。
https://stackoverflow.com/questions/43743889
复制相似问题