Asp.net MVC - paypal ipn
我正在尝试将 paypal sandox 与我的 MVC 项目集成。我已启用 AutoReturn 和 ipn,已禁用 PDT。
付款后,在自动返回页面,我得到
Request.HttpMethod -->得到 HttpContext.Request.ContentLength --> 0 Request.Form.Keys.Count --> 0
如果我也启用 PDT,我会得到相同的结果
,任何人都可以解决这个问题
i am trying to integrate paypal sandox with my MVC project. I have enabled AutoReturn and ipn, i have disabled PDT.
After payment is made, in the auto-return page, i get
Request.HttpMethod --> GET
HttpContext.Request.ContentLength --> 0
Request.Form.Keys.Count --> 0
if i enable PDT also, i get the same result
can anyone please solve this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确的话,你是说你的 AutoReturn 发出了一个不带参数的 GET 。这不是设计好的吗? AutoReturn 只是用户的重定向,不一定需要包含任何表单参数。
IPN 应该向您发出 POST。 IPN 和 AutoReturn URL 是两个不同的值——都是在您的 PayPal 管理器中设置的吗?
也许您可以发布一些 PayPal 管理器设置/屏幕截图?
If I understand you correctly, you're saying that your AutoReturn is issuing a GET with no parameters. Isn't this as designed? The AutoReturn is simply a redirect for the user, and doesn't necessarily need to contain any form parameters.
The IPN is what should be issuing you a POST. The IPN and AutoReturn URLs are two different values -- are both set up in your PayPal Manager?
Perhaps you could post some of your PayPal Manager settings/screenshots?