解析 PayPal 订阅用完 [英] Parsing PayPal Subscription Ran Out

查看:88
本文介绍了解析 PayPal 订阅用完的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 PayPal 订阅,除了查看 txn_type 字段外,我似乎只需要将其视为常规 IPN.当我看到以下状态代码之一时,我会向管理员发送一封电子邮件,以考虑在我使用 PHP 构建的软件的管理面板中手动使该成员过期.

状态似乎是以下状态之一,表明客户已取消、期满或干脆不再付款.任何人都可以确认这些是要检查的正确状态,还是我包含了一些不正确的状态?

  • subscr_cancel
  • subscr_eot
  • subscr_failed
  • recurring_payment_failed
  • recurring_payment_suspended_due_to_max_failed_pa​​yment
  • recurring_payment_outstanding_payment_failed
  • recurring_payment_profile_cancel
  • recurring_payment_expired

解决方案

我发现这些是我代码中关于成员资格终止"类型反应需要注意的地方:

  • subscr_cancel
  • subscr_eot
  • recurring_payment_profile_canceled
  • recurring_payment_expired

所有其他人都只是关于会员资格终止"状态的噪音".例如,对任何支付失败"类型的 IPN 做出反应都是错误的,因为最终 PayPal 可能会在客户重新尝试后纠正该问题,因此取消和到期事件才是您真正应该寻找的.

On PayPal subscriptions, it appears that all I need to do is treat it like a regular IPN except look at the txn_type field. When I see one of the following status codes, I send an email to the admin to consider expiring that member manually in the admin panel of my software I'm building in PHP.

The statuses appear to be one of the following to indicate the customer either cancelled, had an end of term, or simply isn't paying anymore. Can anyone confirm that these are the right statuses to check for, or have I included a couple that aren't right?

  • subscr_cancel
  • subscr_eot
  • subscr_failed
  • recurring_payment_failed
  • recurring_payment_suspended_due_to_max_failed_payment
  • recurring_payment_outstanding_payment_failed
  • recurring_payment_profile_cancel
  • recurring_payment_expired

解决方案

I found that these are the ones to watch regarding "end of membership" type reactions in my code:

  • subscr_cancel
  • subscr_eot
  • recurring_payment_profile_canceled
  • recurring_payment_expired

All others are just "noise" regarding "end of membership" status. For instance, to react to any payment "failure" type IPNs would be wrong because eventually PayPal may rectify that problem with the customer after a reattempt, and so cancellation and expiration events are really what you should look for.

这篇关于解析 PayPal 订阅用完的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆