0

我已经安装并运行了一个 ipn-listener 类,但我需要一些关于如何访问我的沙盒帐户中 IPN Url 设置的本地虚拟主机地址的建议。

127.0.0.1:80在我的开发设置上运行了许多虚拟主机。它们的服务器名称类似于“one.localhost”、“two.localhost”。因此,它们可以在我自己的计算机上通过诸如http://one.localhost/ipn-listener.php.

当我尝试在我的设置中使用 '<a href="http://one.localhost/ipn-listener.php" rel="nofollow">http://one.localhost/ipn-listener.php' 我得到“网址格式不正确”警告。如果我使用http://127.0.0.1/ipn-listener.php它允许我,但当然这不是我真正的互联网 uri。我应该如何处理?

4

1 回答 1

0

Paypal dont like odd urls, for obvious reasons, and 127.0.0.1 would point back to their own machine not yours.

You should look at setting up a URL using Dynamic DNS something like dyndns.com or noip.com. I use dyndns and they are quite good although I am not sure if they are offering free accounts anymore. Be aware, the free accounts will limit you to 1 or maybe 2 dynamic urls and dyndns is pretty cheap for up to 30 dynamic urls all pointing back to the same or different IP's.

This way you can have a vaguely normal url that will point back to your PC and PayPal will allow you to setup the listener address using that.

于 2013-10-04T09:56:01.527 回答