[GH-ISSUE #2860] bug(stripe): inconsistency between subscription.stripeSubscriptionId and subscription.id #18003

Closed
opened 2026-04-15 16:21:44 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @rgodha24 on GitHub (Jun 1, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2860

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

here, we use the subscriptionId field on the body as the subscription.id field on the database
96634ceefd/packages/stripe/src/index.ts (L200-L205)

here, we use the subscriptionId field on the body as the subscription.stripeSubscriptionId
96634ceefd/packages/stripe/src/index.ts (L252-L264)

this prevents us from switching subscriptions to new plans

Originally created by @rgodha24 on GitHub (Jun 1, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2860 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce here, we use the subscriptionId field on the body as the `subscription.id` field on the database https://github.com/better-auth/better-auth/blob/96634ceefd4605761eb183ae8ed3529b9eb1db3e/packages/stripe/src/index.ts#L200-L205 here, we use the subscriptionId field on the body as the `subscription.stripeSubscriptionId` https://github.com/better-auth/better-auth/blob/96634ceefd4605761eb183ae8ed3529b9eb1db3e/packages/stripe/src/index.ts#L252-L264 this prevents us from switching subscriptions to new plans
GiteaMirror added the locked label 2026-04-15 16:21:44 -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#18003