[ Stripe ] Is there a way to cancel a user subscription when the user deletes their account?

Hi, I've set up the Stripe plugin, all works as it should, users can subscribe to products, they can change and delete subscriptions manually. Now when a user deletes their account , if they don't manually cancel the subscription before deleting the account, the subscription is still present in the Stripe dashboard and money is still being charged. Is there a way to cancel the subscription using the plugin? Can't find any info in the docs on this, the client.subscription.cancel() fn redirects them to the Billing Portal, it does not directly cancel the subscription.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?