Web.config - 贝宝IPN监听器 - HTTP错误代码500:内部服务器错误
问题描述:
我想让我的贝宝IPN监听器在我的实时环境中工作,它的工作原理完美,并且问题与网络有关config文件:Web.config - 贝宝IPN监听器 - HTTP错误代码500:内部服务器错误
(http://pastebin.com/B8YhJEZK)
我使用 “https://developer.paypal.com/us/cgi-bin/devscr” 和即时付款通知(IPN)模拟器来测试Web服务,但我收到以下内容:
“IPN传送失败。HTTP错误代码500:内部服务器错误”
答
您可能想要从PayPal阅读此通告,以了解他们对即时通知服务(ipn)所做的一些更改。
还,检查你的代码,看看是否有一些与此类似:
$fp = fsockopen($host,"80",$err_num,$err_str,30);
并尝试将其更改为这样的事情:
$fp = fsockopen('ssl://'.$host,"443",$err_num,$err_str,30);