Trigger annualDiscountPriceId on Stripe
Hey devs, i defined a
annualDiscountPriceId
but i dont know how can trigger it with the subscription.upgrade
Solution:Jump to solution
Something happened because now it returns the correct array with the subscription, closing issue.
2 Replies
Update:
Verified that Bekaru pushed this change:
https://github.com/better-auth/better-auth/commit/905210f2
However there is not reference of it in the docs, so this PR i made adds it:
https://github.com/better-auth/better-auth/pull/1725
---
Now i am trying
annual: true
in the subscription.upgrade
function, tried it and subscription was done in Stripe's Dashboard as you can see in the attached image.
However the subscription is saved at Stripe's, the function auth.api.listActiveSubscriptions
doesn't return the subscription, just an empty array.
Looking forward for an solution.
Solution
Something happened because now it returns the correct array with the subscription, closing issue.