How to cancel Stripe subscription using API?
Hi, I want to allow users to cancel their subscriptions directly via the API because the default
Currently, I’ve implemented cancellation through the API, but now I’m thinking about how to synchronize it properly with Better-Auth. I noticed that the database isn’t updated after I cancel a subscription, etc.
My logic:
authClient.subscription.cancel just redirects users to the Stripe Billing Portal, which doesn’t suit my needs. I just want users to be able to click a button and cancel their subscription - nothing more. Has anyone achieved this properly?Currently, I’ve implemented cancellation through the API, but now I’m thinking about how to synchronize it properly with Better-Auth. I noticed that the database isn’t updated after I cancel a subscription, etc.
My logic: