George
BABetter Auth
•Created by Lionvsx on 3/22/2025 in #bug-reports
[STRIPE] Annual discount & Upgrade
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?
10 replies
BABetter Auth
•Created by George on 4/21/2025 in #bug-reports
Stripe plugin - upgrade() creates two subscriptions instead of updating existing one.
@ayersss I found this issue on github. It seems to address this very issue: https://github.com/better-auth/better-auth/issues/1880. Looks like there is a fix planned. Make sure to pass the subscriptionId to the upgrade() method. This way it will work once the issue gets fixed.
6 replies
BABetter Auth
•Created by George on 4/21/2025 in #bug-reports
Stripe plugin - upgrade() creates two subscriptions instead of updating existing one.
However, IMO this should be done automatically by the plugin.
6 replies
BABetter Auth
•Created by George on 4/21/2025 in #bug-reports
Stripe plugin - upgrade() creates two subscriptions instead of updating existing one.
A workaround could be to cancel the cheaper plan using the Stripe api (https://docs.stripe.com/api/subscriptions/cancel) whenever the user upgrades to a more expensive plan. This can be done in the onSubscriptionComplete() hook.
6 replies