paypal - IPN 进行多次回调 - 不会停止

标签 paypal paypal-ipn

我正在针对 Paypal 沙箱测试我的 IPN 回调处理程序,在我的一生中,我无法确定它为什么会进行多次回调。自昨晚我开始测试购买以来一直在进行。

在 IPN 中,我是否需要在确认交易后向 Paypal 发送消息,告诉他们 IPN 回调成功?

我检查了 IPN 历史记录,IPN 一直在重试。日志显示 HTTP 响应代码 405 和传递状态 = 失败

请注意,我网站上的 IPN 回调方法可以很好地处理来自 Paypal 的请求,我得到了所有变量,例如交易 ID、金额等...

我正在使用 MVC,ActionResult 标有 [HttpPost]

最佳答案

Introducing IPN

The IPN message authentication protocol consists of four steps:

  1. PayPal HTTP POSTs an IPN message to your listener that notifies it of an event.
  2. Your listener returns an empty HTTP 200 response to PayPal.
  3. 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.
  4. 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.

嗯。

关于paypal - IPN 进行多次回调 - 不会停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28584574/

相关文章:

Paypal 退款拆分交易

PayPal 阻止与什么有关的重复发票 ID?

php - Paypal 订阅 "custom"变量问题(沙盒)

php - 网关 [paypal] 不支持方法 [create]

带有重音字符的 PHP serialize() 导致序列化不完整

ios - 在我将 iOS 应用发布到 App Store 之前,Paypal 是否需要审核它?

javascript - Paypal API 的动态价格变化?

PayPal Checkout 使用默认设置的 PayPal 帐户付款

Paypal IPN 变更 |有没有人在过去的 24 小时内有任何运气

paypal - 试贷场景中的前置API场景