[STRIPE] Annual discount & Upgrade
1. When updating a subscription and the user already has a subscription, the existing subscription is fetched incorrectly resulting to trying to create a new sub instead of updating existing one
-> ISSUE https://github.com/better-auth/better-auth/issues/1880
-> FIX https://github.com/better-auth/better-auth/pull/1881
2. The getPlanByPriceId doesn't take into account the annual discounted price id
-> ISSUE https://github.com/better-auth/better-auth/issues/1942
-> FIX https://github.com/better-auth/better-auth/pull/1941
GitHub
Stripe update with existing subscription · Issue #1880 · better-aut...
Is this suited for github? Yes, this is suited for github To Reproduce Create a first subscriptions Try to update the subscription to a higher plan by passing the subscriptionId to the upgrade meth...
GitHub
[STRIPE] Webhook not working for annual discount price ids · Issue ...
Is this suited for github? Yes, this is suited for github To Reproduce Define a plan containing annual price id Checkout Sub hasn't updated in DB Current vs. Expected behavior CURRENT : webhook...
4 Replies
bump
hi, did u find a workaround for this?
Hi, no I am waiting for the PR to be updated
Rn I updated the stripe config to enable the billing portal switch subscription feature
and I simplify expose a button manage subscription to redirect to the billing portal url
The billing portal url is generated without better auth, using the stripe sdk directly
thanks for sharing ur solution!
Thanks for submitting these to github. I'm having an issue with the subscription upgrades right now and i'm glad to hear this will be fixed. Do you have any idea when these might be implemented?