[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
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
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...
Was this page helpful?