贝宝IPN模拟器问题 [英] Paypal IPN simulator issue
问题描述
尽管很多人都提出了这个问题,但我经历了许多问题,但无法解决我的问题.我认为它很简单,但不幸的是我被困在这里.
Although lots of people have asked this question and I have gone through many of them but unable to fix my issue. I think its simple but unfortunately I am stuck here.
我可以从外部打我的听众,但不能从IPN模拟器中获得.出现以下错误
I am able to hit my listener externally but not getting from IPN simulator. Getting the following error
非常感谢任何帮助.
欢呼!
推荐答案
PayPal的IPN模拟器似乎阻止在目标URL中使用原始" IP地址.我已经对其进行了测试,看来模拟器只会在使用域名代替IP地址的情况下才会发送请求.
Using a "raw" IP address in the target URL appears to be prevented by PayPal's IPN simulator; I've been testing it out and it seems that the simulator will only send a request if you use a domain name in place of the IP address.
因此,如果您有域名,则可以使用域名上的A
或AAAA
记录来指向您的IP地址,而不是像http://1.2.3.4/test.php
这样的地址,然后替换为"naked" URL的一部分-1.2.3.4
-具有域名,例如stackoverflow.com
,因此您最终会得到http://stackoverflow.com/test.php
,它仍会将您发送到与您先前尝试发送请求的端点相同的端点
So, instead of an address like http://1.2.3.4/test.php
, if you have a domain name, you can set an A
or AAAA
record on the domain name to point to your IP address, and then replace the "naked" part of the URL - the 1.2.3.4
- with the domain name, like stackoverflow.com
, so you'd end up with http://stackoverflow.com/test.php
, which still should send you to the same endpoint as you were previously attempting to send the request to.
奇怪的是,这项限制仍然存在,可能是PayPal忽略了一个错误,因为我找不到关于该主题的任何文档,但这是解决限制的一种方法.
It's odd that this restriction would be in place, it could possibly be a bug that PayPal overlooked since I can't find any documentation on the subject, but that's one way to get around the restriction.
这篇关于贝宝IPN模拟器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!