80 以外的端口上的 PayPal IPN
有人尝试过在 80 以外的端口上使用 Paypal 的 IPN 吗?
我试图指定一个类似 http://domain.com:8080/url/ 的 URL to/ipn.php 但 IPN 请求未通过。
如果我直接从浏览器点击 URL,它就可以正常工作。
Has anybody tried using Paypal's IPN on a port other than 80?
I'm trying to specify a URL like http://domain.com:8080/url/to/ipn.php but the IPN request isn't getting through.
If I hit the URL directly from my browser it works fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过多次测试,我能够确认 PayPal 的通知 URL/notify_url 不能包含非标准端口号。
这些网址将起作用:
这些将不起作用:
After doing multiple tests I was able to confirm that PayPal's Notification URL/notify_url can not contain a non-standard port number.
These urls will work:
These will not work:
如果您有可以通过 ssh 访问的 nginx 服务器,那么您可以执行以下操作:
启动 ssh 反向代理:
添加 nginx 配置以代理端口 80 上的端口 3000:
If you have nginx server with possibility to access to it by ssh, then you can do:
Start ssh reverse proxy:
Add nginx config to proxy a port 3000 on port 80: