Hi @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?
Hi, I use Stripe.
I would like to block subscriptions when the payment is unsuccessful.
What can I do now?
Hi, I still waiting
I would like to block subscriptions when the payment is unsuccessful.
Please help π
Thank you for your patience @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
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).
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?
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.
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
Hi Andrew,
I still waiting for your answer π
Regards Krzysztof
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.