Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP中的Paypal连接失败(停靠网站)_Php_Docker_Paypal - Fatal编程技术网

PHP中的Paypal连接失败(停靠网站)

PHP中的Paypal连接失败(停靠网站),php,docker,paypal,Php,Docker,Paypal,在我的php网站中,通过在apache错误日志中提供以下内容,与paypal关联的页面重定向不起作用。我在Dockerfile中暴露了端口80和443。其余的东西在站点中运行良好,具有相同代码的站点在本地apache服务器中运行良好 * Trying 173.0.82.83... * Connected to api-3t.sandbox.paypal.com (173.0.82.83) port 443 (#0) * ALPN, offering http/1.1 * Cipher sel

在我的php网站中,通过在apache错误日志中提供以下内容,与paypal关联的页面重定向不起作用。我在Dockerfile中暴露了端口80和443。其余的东西在站点中运行良好,具有相同代码的站点在本地apache服务器中运行良好

*   Trying 173.0.82.83...
* Connected to api-3t.sandbox.paypal.com (173.0.82.83) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: 
ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / AES256-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*        subject: C=US; ST=California; L=San Jose; O=PayPal, Inc.; OU=PayPal 
Production; CN=api-3t.sandbox.paypal.com
*        start date: Jan 14 00:00:00 2016 GMT
*        expire date: Jan 14 23:59:59 2018 GMT
*        subjectAltName: api-3t.sandbox.paypal.com matched
*        issuer: C=US; O=Symantec Corporation; OU=Symantec Trust Network; 
CN=Symantec Class 3 Secure Server CA - G4
*        SSL certificate verify ok.
> POST /nvp HTTP/1.1
Host: api-3t.sandbox.paypal.com
Accept: */*
Content-Length: 655
Content-Type: application/x-www-form-urlencoded

* upload completely sent off: 655 out of 655 bytes
< HTTP/1.1 200 OK
< Date: Mon, 04 Sep 2017 08:07:48 GMT
< Server: Apache
< X-SLR-RETRY-API: SetExpressCheckout
< X-PAYPAL-OPERATION-NAME: SetExpressCheckout
< X-PAYPAL-API-RC: 
< Connection: close
< HTTP_X_PP_AZ_LOCATOR: sandbox.slc
< Paypal-Debug-Id: 6692e8ec22b4a
< Set-Cookie: X-PP SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D3691621721%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Mon, 04 Sep 2017 08:37:56 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
< Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
< Content-Length: 137
< Content-Type: text/plain; charset=utf-8
< 
* Closing connection 0
*正在尝试173.0.82.83。。。
*已连接到api-3t.sandbox.paypal.com(173.0.82.83)端口443(#0)
*ALPN,提供http/1.1
*密码选择:
全部:!出口:!出口40:!出口56:!阿努尔:!低:!RC4:@强度
*已成功设置证书验证位置:
*CAfile:/etc/ssl/certs/ca-certificates.crt
CApath:/etc/ssl/certs
*使用TLSv1.2/AES256-SHA256的SSL连接
*ALPN,服务器不同意协议
*服务器证书:
*主题:C=美国;ST=加利福尼亚州;L=圣何塞;O=贝宝公司。;OU=贝宝
生产;CN=api-3t.sandbox.paypal.com
*开始日期:2016年1月14日00:00:00 GMT
*到期日期:2018年1月14日23:59:59 GMT
*主题名称:api-3t.sandbox.paypal.com匹配
*发行人:C=美国;O=赛门铁克公司;OU=赛门铁克信任网络;
CN=赛门铁克3级安全服务器CA-G4
*SSL证书验证正常。
>POST/nvp HTTP/1.1
主持人:api-3t.sandbox.paypal.com
接受:*/*
内容长度:655
内容类型:application/x-www-form-urlencoded
*上传已完全发送:655字节中有655个
请帮我纠正这个错误

我可以在本地的apache下找到错误日志,如果成功,则不会记录任何错误日志


我使用的是安装在oracle虚拟机中的Ubuntu 17.04。我无法在VM中从我的服务器ping paypal沙盒URL。如果我试图从本地命令提示符ping URL,则在本地apache(从XAMP)中成功连接paypal后,请求超时。

从本地发布日志,当它工作时,我们单独记录错误。从本地发布日志,当它工作时,我们单独记录错误。