Title: Payment Failed email
Last modified: October 28, 2016

---

# Payment Failed email

 *  [navyspitfire](https://wordpress.org/support/users/navyspitfire/)
 * (@navyspitfire)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/)
 * I got an email titled “Membership Payment Failed” for a user and the content 
   just say “payment failed” and give me the user name, address, and CC info.
 * What exactly does this mean? What do I have to do as an admin? What happens with
   the user? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Travis](https://wordpress.org/support/users/travislima/)
 * (@travislima)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8378349)
 * Hi there,
 * Thank you for getting in touch with us.
 * This email is obviously a notification that a user failed to pay, probably their
   recurring membership. I believe the membership of the user will continue for 
   sometime even though they have not paid their subscription (this is mainly to
   give the user a chance to change billing details in an event their credit card
   expires).
 * You as the admin can make contact with the user, notify them of the failed payment
   and decide what you would like to do. If they do not comply with your requirements
   you can manually cancel their subscription by navigating to:
 * WordPress Dashboard > Users > Username of user who failed to pay > Membership
   Level > Current Level > None
 * They should still have their account but they won’t be able to have access to
   any restricted content on your site.
 * Hope this helps!
    Trav
 *  [Travis](https://wordpress.org/support/users/travislima/)
 * (@travislima)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8378364)
 * You may also find this useful:
 * [https://www.paidmembershipspro.com/automatically-cancel-membership-after-x-failed-payments/](https://www.paidmembershipspro.com/automatically-cancel-membership-after-x-failed-payments/)
 *  Thread Starter [navyspitfire](https://wordpress.org/support/users/navyspitfire/)
 * (@navyspitfire)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8378461)
 * Hi Trav, thanks. So this is due to the card information being incorrect then?
   I.e., they have a new card, their old card is deactivated, etc…
 * Also I cannot see the link as I am using the free version. Thanks.
 *  [Travis](https://wordpress.org/support/users/travislima/)
 * (@travislima)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8386951)
 * Hi [@navyspitfire](https://wordpress.org/support/users/navyspitfire/),
 * It is very likely that the user’s card was not charged for one of those reasons.
   I think it will be best to make contact with the user to find out.
 * Sorry for sending you a premium member link, it was a code recipe that will allow
   you to automatically cancel the user’s membership after a certain number of failed
   attempts. You might be able to find it on GitHub if you want to have a closer
   look at it.
 * Hope this helps!
    Travis
 *  Thread Starter [navyspitfire](https://wordpress.org/support/users/navyspitfire/)
 * (@navyspitfire)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8387565)
 * Hi Travis, I grabbed this code from a [stripe](http://pmpro_subscription_payment_failed)
   example, and trying using the `pmpro_subscription_payment_failed` hook. The hook
   uses a `MemberOrder $old_order` parameter, which I don’t understand. Is this 
   close to what I need? Or do I need to use that `$old_order` parameter somehow?
 *     ```
       function my_pmpro_subscription_deleted($user_id)
       {
       	//cancel the membership
       	pmpro_changeMembershipLevel(0, $user_id);
       }
       add_action("pmpro_subscription_payment_failed", "my_pmpro_subscription_deleted");
       ```
   
 *  [Travis](https://wordpress.org/support/users/travislima/)
 * (@travislima)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8389792)
 * Hi [@navyspitfire](https://wordpress.org/support/users/navyspitfire/),
 * I believe this is the link to GitHub that you can use:
    [https://github.com/strangerstudios/pmpro-failed-payment-limit/blob/master/pmpro-failed-payment-limit.php](https://github.com/strangerstudios/pmpro-failed-payment-limit/blob/master/pmpro-failed-payment-limit.php)
 * But, I need to bring to your attention that it would seem that some users are
   having a couple of issues with the this code, we are working to debug it. So 
   I would view it for reference for now and install it once all the bugs are worked
   out.
 * Hope this helps!
    Trav

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Payment Failed email’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [Failed](https://wordpress.org/support/topic-tag/failed/)

 * 6 replies
 * 2 participants
 * Last reply from: [Travis](https://wordpress.org/support/users/travislima/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/payment-failed-email/#post-8389792)
 * Status: not resolved