IPN 进行多次回调 - 不会停止
IPN Making Multiple Callbacks - Won't Stop
我正在针对 Paypal 沙箱测试我的 IPN 回调处理程序,我无法确定为什么它会进行多次回调。自昨晚我开始测试购买以来一直在进行。
在 IPN 中,我是否需要在确认交易后向 Paypal 发送一个 post 通知他们 IPN 回调成功?
我查看了 IPN 历史记录,IPN 一直在重试。日志显示 HTTP 响应代码 405 和传递状态 = 失败
请注意,我网站上的 IPN 回调方法可以很好地处理来自 Paypal 的请求,我得到了所有变量,例如交易 ID、金额等...
我正在使用 MVC,ActionResult 标有 [HttpPost]
Introducing IPN
The IPN message authentication protocol consists of four steps:
- PayPal HTTP POSTs an IPN message to your listener that notifies it of an event.
- Your listener returns an empty HTTP 200 response to PayPal.
- Your listener HTTP POSTs the complete, unaltered message back to PayPal; the message must contain the same fields (in the same order) as the original message and be encoded in the same way as the original message.
- PayPal sends a single word back - either
VERIFIED
(if the message matches the original) or INVALID
(if the message does not match the original).
Your listener must respond to every IPN message it gets, whether you take action on it or not. If you do not respond, PayPal assumes the IPN was not received and re-sends it. Further, PayPal continues to re-send the message periodically until your listener responds, although the interval between retries increases with each attempt. An IPN will be resent for up to four days, with a maximum of 15 retries.
Hth.
我正在针对 Paypal 沙箱测试我的 IPN 回调处理程序,我无法确定为什么它会进行多次回调。自昨晚我开始测试购买以来一直在进行。
在 IPN 中,我是否需要在确认交易后向 Paypal 发送一个 post 通知他们 IPN 回调成功?
我查看了 IPN 历史记录,IPN 一直在重试。日志显示 HTTP 响应代码 405 和传递状态 = 失败
请注意,我网站上的 IPN 回调方法可以很好地处理来自 Paypal 的请求,我得到了所有变量,例如交易 ID、金额等...
我正在使用 MVC,ActionResult 标有 [HttpPost]
Introducing IPN
The IPN message authentication protocol consists of four steps:
- PayPal HTTP POSTs an IPN message to your listener that notifies it of an event.
- Your listener returns an empty HTTP 200 response to PayPal.
- Your listener HTTP POSTs the complete, unaltered message back to PayPal; the message must contain the same fields (in the same order) as the original message and be encoded in the same way as the original message.
- PayPal sends a single word back - either
VERIFIED
(if the message matches the original) orINVALID
(if the message does not match the original).Your listener must respond to every IPN message it gets, whether you take action on it or not. If you do not respond, PayPal assumes the IPN was not received and re-sends it. Further, PayPal continues to re-send the message periodically until your listener responds, although the interval between retries increases with each attempt. An IPN will be resent for up to four days, with a maximum of 15 retries.
Hth.