#josephmalam-best-practices
1 messages ยท Page 1 of 1 (latest)
Hi hanzo, sure, thank you ๐
- What is best practice regarding account deletion?
It'd depend on your integration really. Can you expand on how your application works and what the expectation is when a user deletes the account?
- Should I disable account deletion until the subscription expires?
That would also really just depend on your integration as above
- If they cancel their subscription through the Stripe customer portal, but still have time until the subscription expires, is it OK to let them delete the account?
Similar to the above. Depends on your integration.
- Is there a way to recover the deleted user's subscription, e.g. if they cancel their sub via customer portal, but it still has X months before expiry, then they delete their account on my app. Then they sign up for the app again (with Google auth) -- should I do a check against the email address and give them the remaining subscription? Is that even secure / legal?
Not sure from a legal perspective so would take it with a grain of salt but you could offer your customers to either temporarily disable their account (which would keep their remaining subscription time) or just completely delete the account and start fresh later
Alright, understood, thank you.
It'd depend on your integration really. Can you expand on how your application works and what the expectation is when a user deletes the account?
It's just a standard subscription model โ when users Sign In With Google, a user account is created in my database, and an attributesubscribedis true when they have an active Stripe subscription. So I guess I can just warn them if they try to delete whensubscribed == truethat they would lose their remaining subscription time.
If they proceed, is there a way to manually the subscription (like a "reverse webhook")? If not, I can just handle it for deleted users on my end when the expired webhook eventually gets sent
If they proceed, is there a way to manually the subscription (like a "reverse webhook")?
I just realised, I will need to do this somehow, otherwise their subscription will renew, right?
If they proceed, is there a way to manually the subscription (like a "reverse webhook")? If not, I can just handle it for deleted users on my end when the expired webhook eventually gets sent
Sorry I believe the question is missing something right? manually the subscription what? delete, pause?
Yes you can cancel the subscription using the API
https://stripe.com/docs/api/subscriptions/cancel
Great, thank you very much for your help hanzo!