Title: Automatic subscription lock does not work.
Last modified: February 18, 2022

---

# Automatic subscription lock does not work.

 *  Resolved [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/)
 * Hi,
 * Is there any waiting period for subscription to be blocked after payment has 
   not been received?
 * The payment was not taken yesterday and the subscription account is still active.
   I would like to add that in this case the subscription is renewed every day.
 * If it is a bug, please help me how to fix it?
 * Thank You 🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautomatic-subscription-lock-does-not-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15385727)
 * Hi [@krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * This depends on how your payment gateway handles failed payments. We try to cancel
   the subscription immediately if the payment fails.
 * However, gateways sometimes suspend or pause the subscription on their end resulting
   in the payment not cancelling the customer’s membership level.
 * What payment gateway are you using for your membership?
 *  Thread Starter [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15395598)
 * Hi, I use Stripe.
 * I would like to block subscriptions when the payment is unsuccessful.
 * What can I do now?
 *  Thread Starter [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15408373)
 * Hi, I still waiting
 * I would like to block subscriptions when the payment is unsuccessful.
 * Please help 🙂
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15410532)
 * Thank you for your patience [@krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/),
   by default Stripe should send a `charge.failed` webhook event when this happens
   and then Paid Memberships Pro should remove the customer’s membership level.
 * Please can you ensure that your webhook is setup correctly by following this 
   guide – [https://www.paidmembershipspro.com/gateway/stripe/#tab-gateway-setup](https://www.paidmembershipspro.com/gateway/stripe/#tab-gateway-setup)
 * Lastly, please can you overlook webhook event history in Stripe to ensure Stripe
   is sending a webhook when the charge fails? Please note that there may be a grace
   period before Stripe sends this notification to your webhook URL (in Paid Memberships
   Pro).
 *  Thread Starter [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15415089)
 * Hi,
 * Thank You for answer:)
 * In Stripe i get:
 *     ```
       Response
       200 OK
       Logged On: 02/28/2022 00:45:59
       Subscription payment failed on order ID #24. Sent email to the member and site admin.
       ```
   
 * Looks like it’s ok. What can I do now to block subscriptions?
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15444569)
 * What do you mean by block subscriptions? Are you referring to removing the user’s
   Paid Memberships Pro membership level or prevent them from signing up again?
 * Once the `charge.failed` event is sent the user’s membership level should be 
   automatically removed.
 *  Thread Starter [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15463290)
 * Hi Andrew,
 * I refer to removing the user’s Paid Memberships Pro membership level.
 * I noticed charge.failed is being received but does not take any action. Where
   could the error be? How can I fix it?
 * Regards Krzysztof
 *  Thread Starter [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15480460)
 * Hi Andrew,
 * I still waiting for your answer 🙂
 * Regards Krzysztof
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15482025)
 * Thank you for your patience, by default the membership should be removed once
   that webhook has been received.
 * I recommend in disabling all other Add Ons except Paid Memberships Pro and test
   this process again to see if the issue persists or not.
 * Any custom code, or plugin that may alter the user’s level on cancellation could
   be interfering here. I haven’t been able to replicate this and it seems to be
   a site specific issue.

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

The topic ‘Automatic subscription lock does not work.’ 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

 * [lock](https://wordpress.org/support/topic-tag/lock/)

 * 9 replies
 * 2 participants
 * Last reply from: [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-subscription-lock-does-not-work/#post-15482025)
 * Status: resolved