I hereby claim:
- I am sethimcclaine on github.
- I am sethmcclaine (https://keybase.io/sethmcclaine) on keybase.
- I have a public key whose fingerprint is 1185 A157 38DA E72E 0287 52F6 DE04 DB4B 5A71 42E2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
Cancel subscriptions when a recurring payment fails. As of PMPro version 1.5.9.1, failed payments reported via Stripe webhook, PayPal IPN handler, or Authorize.net silent post kick off the pmpro_subscription_payment_failed action. | |
Also make sure to edit the default billing_failure.html email to mention that users are cancelled upon failure. To do so, copy paid-memberships-pro/email/billing_failure.html into themes/{active theme}/paid-memberships-pro/email/ and edit the text to suit your need. | |
Note: This cancels on the first failure. To cancel only when cancelling at Stripe, see this gist: https://gist.github.com/strangerstudios/5093710 | |
*/ | |
function my_pmpro_subscription_payment_failed($order) | |
{ | |
//cancel the membership |