简体   繁体   English

贝宝IPN模拟器不起作用

[英]PayPal IPN Simulator not working

I am trying to send an Instant Payment Notification (IPN) to my server using Instant Payment Notification (IPN) simulator on Paypal Developer site. 我正在尝试使用Paypal Developer网站上的即时付款通知(IPN)模拟器将即时付款通知(IPN)发送到我的服务器。

I have been searching all over the internet and I found a site which allows to test the ipn http://samples.geekality.net/ipn/ when I use this url http://samples.geekality.net/ipn/listener.php in IPN simulator it shows me the data on this sample site but when I use my own site's url which is something like this http://example.com/appointments/payment/notify it just doesn't work I am sending an mail function using to my email something like this: 我一直在寻找所有在互联网上,我发现了一个网站,它允许测试IPN http://samples.geekality.net/ipn/当我使用这个网址http://samples.geekality.net/ipn/listener。 IPN模拟器中的php会向我显示此示例站点上的数据,但是当我使用自己的站点的url时,例如http://example.com/appointments/payment/notify,它无法正常工作,我正在发送邮件可以使用以下功能向我的电子邮件发送邮件:

mail('example@example.com', 'notify action performed', http_build_query($_REQUEST));

when I access this url directly it works and send me an email but doesn't work with ipn simulator. 当我直接访问此URL时,它可以工作并向我发送电子邮件,但不适用于ipn模拟器。

FYI: Return/Cancel url works fine. 仅供参考:返回/取消网址可以正常工作。

Q: Am I doing something wrong? 问:我做错什么了吗? And How can I solve it? 我该如何解决呢?

Please let me know if this is a possible duplicate. 请让我知道这是否可能重复。

Thank you. 谢谢。

I've just tried to reproduce your issue, but everything seems to work fine. 我只是想重现您的问题,但一切似乎都正常。 Maybe the email was sent in the spam folder, or maybe you're server is having problems with the mail() function 也许电子邮件是在垃圾邮件文件夹中发送的,或者您的服务器在使用mail()函数时遇到问题

I ran into a similar problem. 我遇到了类似的问题。 I was actually able to get the IPN simulator to work on testing my IPN listener a few times. 实际上,我能够使IPN模拟器能够多次测试IPN侦听器。 Each time I was learning from the errors. 每次我从错误中学习。 Once I thought things should be working again I was getting an "Internal Server Error". 一旦我认为一切应该再次正常工作,我就收到了“内部服务器错误”。 At first I thought this was my server returning 500, but the logs showed Paypal wasn't even trying to talk to my server. 起初我以为这是我的服务器返回500,但是日志显示Paypal甚至没有尝试与我的服务器通信。

Since you now have to login to use the IPN simulator, I resolved this issue by logging out and back in with a different account (I happen to have a few already) and it started working again. 由于您现在必须登录才能使用IPN模拟器,因此我通过注销并使用其他帐户(我碰巧已经有几个)重新登录来解决了此问题,并且它再次开始工作。

Hopefully this helps someone else having this issue. 希望这可以帮助其他人遇到此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM