[GH-ISSUE #8821] Stripe: store priceId in subscription table #19832

Open
opened 2026-04-15 19:11:07 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @bytaesu on GitHub (Mar 29, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8821

Originally assigned to: @bytaesu on GitHub.

Is this suited for github?

  • Yes, this is suited for github

Summary

Store the actual Stripe price ID in the subscription table instead of
deriving it from the plan config at query time.

Background

In #7721, we fixed an issue where annual subscriptions returned the wrong priceId
by checking billingInterval against the plan config. While this works, it is an
indirect derivation rather than a proper fix.

Originally created by @bytaesu on GitHub (Mar 29, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8821 Originally assigned to: @bytaesu on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. ## Summary Store the actual Stripe price ID in the subscription table instead of deriving it from the plan config at query time. ## Background In #7721, we fixed an issue where annual subscriptions returned the wrong priceId by checking `billingInterval` against the plan config. While this works, it is an indirect derivation rather than a proper fix.
GiteaMirror added the enhancementpayments labels 2026-04-15 19:11:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19832