[PR #7371] [CLOSED] feat(stripe): adding priceId in db #7267

Closed
opened 2026-03-13 13:30:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7371
Author: @Konixy
Created: 1/14/2026
Status: Closed

Base: canaryHead: feat/stripe_priceId_in_db


📝 Commits (4)

  • 39e0224 feat(stripe): Adding priceId in db
  • e4ecef4 feat(stripe): adding priceId in schema
  • 0110b22 feat(stripe): updating docs to include priceId in schema
  • 3fa3181 Merge branch 'better-auth:main' into feat/stripe_priceId_in_db

📊 Changes

4 files changed (+14 additions, -0 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+6 -0)
📝 packages/stripe/src/hooks.ts (+2 -0)
📝 packages/stripe/src/index.ts (+2 -0)
📝 packages/stripe/src/schema.ts (+4 -0)

📄 Description

duplicate of #2265


Summary by cubic

Stores the Stripe priceId on subscriptions and keeps it in sync across checkout and subscription updates. This makes plan tracking easier in the DB.

  • New Features
    • Added optional priceId field to the subscriptions schema.
    • Persist priceId on subscription creation and update it on checkout_session.completed and customer.subscription.updated.
    • Updated Stripe plugin docs to include the new priceId field.

Written for commit 3fa3181837. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7371 **Author:** [@Konixy](https://github.com/Konixy) **Created:** 1/14/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/stripe_priceId_in_db` --- ### 📝 Commits (4) - [`39e0224`](https://github.com/better-auth/better-auth/commit/39e02247711da31888a89a831fd14887e41e573d) feat(stripe): Adding priceId in db - [`e4ecef4`](https://github.com/better-auth/better-auth/commit/e4ecef4ca5362fcd5930e43d09d384daf454caf1) feat(stripe): adding priceId in schema - [`0110b22`](https://github.com/better-auth/better-auth/commit/0110b22b8f798d0c6995a1be6b7fac473181398c) feat(stripe): updating docs to include priceId in schema - [`3fa3181`](https://github.com/better-auth/better-auth/commit/3fa3181837120917461546f0a382d9cfb31be2b6) Merge branch 'better-auth:main' into feat/stripe_priceId_in_db ### 📊 Changes **4 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+6 -0) 📝 `packages/stripe/src/hooks.ts` (+2 -0) 📝 `packages/stripe/src/index.ts` (+2 -0) 📝 `packages/stripe/src/schema.ts` (+4 -0) </details> ### 📄 Description duplicate of #2265 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Stores the Stripe priceId on subscriptions and keeps it in sync across checkout and subscription updates. This makes plan tracking easier in the DB. - **New Features** - Added optional priceId field to the subscriptions schema. - Persist priceId on subscription creation and update it on checkout_session.completed and customer.subscription.updated. - Updated Stripe plugin docs to include the new priceId field. <sup>Written for commit 3fa3181837120917461546f0a382d9cfb31be2b6. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:30:10 -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#7267