简体   繁体   English

PayPal IPN模拟器:IPN未发送,并且握手未验证。 请检查您的信息

[英]PayPal IPN Simulator: IPN was not sent, and the handshake was not verified. Please review your information

"IPN was not sent, and the handshake was not verified. Please review your information." “未发送IPN,并且握手尚未验证。请查看您的信息。” This is the error I get on the PayPal IPN Simulator page after I click the blue “Send IPN” button at the bottom. 单击底部蓝色的“发送IPN”按钮后,这是在PayPal IPN模拟器页面上出现的错误。

The listener I'm using is copied from: https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php I saved this posted code to a PHP file, and named it listener.php; 我正在使用的侦听器是从以下站点复制的: https : //github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php我将此发布的代码保存到一个PHP文件中,并将其命名为listener.php; then I uploaded it to our website. 然后我将其上传到我们的网站。

My PHP is version: 5.5.37 我的PHP版本是:5.5.37

There's actually quite a bit about this very error on SO, but I'm not finding anything that seems to help. 关于SO的这个错误实际上有很多,但是我没有找到任何有帮助的东西。 None of the answers I looked at were accepted, and or seemed to be the issue I'm having. 我看到的所有答案都没有被接受,或者似乎不是我遇到的问题。

I read this: IPN was not sent, and the handshake was not verified. 我读到这: IPN未发送,并且握手未得到验证。 Please review your information. 请检查您的信息。 I didn't know where to run the connection script against PayPal. 我不知道在哪里对PayPal运行连接脚本。 But I did put my website into shachecker.com I got a "Nice XXXX has a verifiable certificate chain signed with SHA-2." 但是我确实将我的网站放到shachecker.com上,但我得到了“ Nice XXXX具有与SHA-2签名的可验证证书链”。

On the PayPal IPN Simulator page, I've been putting in the full URL for my listener in the "IPN handler URL" field. 在PayPal IPN模拟器页面上,我一直在“ IPN处理程序URL”字段中输入侦听器的完整URL。 Then I've been selecting "Cart Checkout" or "Web Accept" in the Transaction Type field. 然后,我一直在“交易类型”字段中选择“购物车结帐”或“网络接受”。

Today my code won't produce any updates in the ipn.log, after I click the "Send IPN" button; 今天,单击“发送IPN”按钮后,我的代码不会在ipn.log中产生任何更新; unless I physically open my listener.php page in a web browser. 除非我在网络浏览器中以物理方式打开我的listener.php页面。 Then it produces the file: ipn.log 然后产生文件:ipn.log

Before today it was working better. 在今天之前,它工作得更好。 I would get a reply of INVALID. 我会收到无效的回复。 So I looked at this URL and checked through the list posted there: https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNTesting/#invalid 因此,我查看了该URL,并检查了其中发布的列表: https : //developer.paypal.com/docs/classic/ipn/integration-guide/IPNTesting/#invalid

I wasn't able to verify the ordering of the variables, or see that they were the same because it quit working today. 我无法验证变量的顺序,或者因为它们今天退出工作而无法看到它们相同。 But I can verify the page is using the correct URL, the message is preceded by cmd=_notify-validate , and it is UTF-8 . 但是我可以验证页面使用的是正确的URL,消息之前是cmd=_notify-validate ,它是UTF-8

This whole adventure has been difficult to debug because there's just no output, or error logs that I can see. 整个冒险过程一直很难调试,因为我没有看到输出或错误日志。 (If anyone's done this before and had success, please let me know.) (如果有人以前做过此事并且取得了成功,请告诉我。)

I'm attempting to use IPN because our current website depends upon a post-back from PayPal, to get notification that the order has completed. 我正在尝试使用IPN,因为我们当前的网站依赖于PayPal的回发,以获取订单已完成的通知。 But we've found that PayPal doesn't always return back to the website. 但是我们发现PayPal并不总是返回网站。 IPN was advertised as being much more reliable. IPN被宣传为更加可靠。 But I'm open to any other suggestions as well. 但我也欢迎其他建议。 Thanks so much! 非常感谢!

It's funny how this got resolved. 有趣的是,这是如何解决的。 I followed Asmir Zahirovic's advice and I emailed the company that's hosting our site. 我遵循了Asmir Zahirovic的建议,并通过电子邮件向托管我们网站的公司发送了电子邮件。 He assured me that they use PayPal's IPN for many of the sites they host, including for their own needs. 他向我保证,他们在托管的许多站点(包括他们自己的需求)中都使用PayPal的IPN。

Then I remembered that someone wrote, somewhere, that PayPal's IPN Simulator just didn't work for them, but production did. 然后我想起有人在某处写道, PayPal的IPN模拟器对他们不起作用,但生产确实对他们有用。

I followed the steps, PayPal outlined, to make sure the listener was enabled and turned on. 我按照贝宝(PayPal)概述的步骤进行操作,以确保已启用并打开了侦听器。 (Still IPN Simulator did not work.) (静态IPN模拟器仍然无法运行。)

Then I set my listener to production mode, and just waited. 然后,我将侦听器设置为生产模式,然后等待。 In a couple days, we had an order come through and my listener got, it from PayPal; 几天后,我们接到了一个订单,我的听众从PayPal那里收到了订单; and it came through as VALID. 并以VALID的形式通过。

So to anyone reading this, the PHP listener code from GitHub works just fine. 因此,对于任何阅读本文的人来说, 来自GitHub的PHP侦听器代码都可以正常工作。 Just go to production ; 刚投产 ; PayPal's IPN Listener may not work. 贝宝的IPN监听器可能无法正常工作。

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

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