简体   繁体   English

贝宝IPN和模拟器-是否需要SSL

[英]PayPal IPN and Simulator - Is SSL Required

I am trying to work with the PayPal IPN simulator to get my development underway. 我正在尝试使用PayPal IPN模拟器来进行开发。

It's very confusing in the sense that some documentation/form inputs require HTTPS and others don't. 从某种意义上来说,这很令人困惑,有些文档/表单输入需要HTTPS而另一些则不需要。 It seems the production website will accept HTTP but not the simulator. 似乎生产网站将接受HTTP但不接受模拟器。

So, what exactly are the requirements here? 那么,这里的要求到底是什么?

When I pass either a HTTP or HTTPS url into the simulator I get the following error 当我将HTTP或HTTPS URL传递给模拟器时,出现以下错误

IPN was not sent, and the handshake was not verified. Please review your information.

That error makes it sound like some kind of SSL is required. 该错误听起来像是需要某种SSL。 As a side note, the request, doesn't get as far as my API (I can't see anything in the logs). 顺便提一句,该请求没有达到我的API的要求(我在日志中看不到任何内容)。

IPN simulator works with http too. IPN模拟器也可以与http一起使用。 As an alternate, you could try to use your IPN URL in your simple html buy now button code (sandbox) and check if you get the IPN notification(in case if IPN simulator is down) 或者,您可以尝试在简单的html立即购买按钮代码(沙盒)中使用IPN URL,并检查是否收到IPN通知(以防IPN模拟器关闭)

<input type="hidden" name="notify_url" value="YOUR_IPN_URL">

It might be that your IPN listener file does not accept the GET/POST requests or any HTTP error for that matter can be seen inside your IPN history logs. 您的IPN侦听器文件可能不接受GET / POST请求,或者可能在IPN历史记录日志中看到与此相关的任何HTTP错误。

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

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