Failed Payment flow
-
Just confirming how a failed payment flow works with automatic setup using gist code.
A user’s CC details fail with stripe.
Using the code:
/* Cancel subscriptions when the subscription is deleted at Stripe Requires PMPro 1.6 or higher. */ function my_pmpro_stripe_subscription_deleted($user_id) { //cancel the membership pmpro_changeMembershipLevel(7, $user_id); } add_action("pmpro_stripe_subscription_deleted", "my_pmpro_stripe_subscription_deleted");
This will change the user’s level to a custom level I setup called “expired memberships” with the id of 7. (this membership level doesn’t have access to hidden content, it is just a place i can monitor expired memberships)
User will get an email from billing_failure.html, where i can include steps to login with current user/pass and re-checkout.
Admin will also receive email from billing_failure_admin.html, alerting the admin that an account has failed.—
Will the user also get an email for cancel and membership level change?
I just want to make sure that this email wont be going out all the time, as i remember the process for stripe being that a subscription is setup, then cancelled immediately after that. Does that effect this flow at all?
- The topic ‘Failed Payment flow’ is closed to new replies.