[PR #2887] [CLOSED] feat(stripe): Reuse existing subscription instead of creating one every time #4543

Closed
opened 2026-03-13 11:50:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2887
Author: @Konixy
Created: 6/3/2025
Status: Closed

Base: mainHead: feat/stripe_reuse_existing_subscription


📝 Commits (2)

  • 7e532a8 feat(stripe): Reuse existing subscription
  • 061694b Merge branch 'better-auth:main' into feat/stripe_reuse_existing_subscription

📊 Changes

1 file changed (+4 additions, -5 deletions)

View changed files

📝 packages/stripe/src/index.ts (+4 -5)

📄 Description

I don't know if it's intentional but every time a user proceed to checkout and then cancel, an "incomplete" subscription is created on the db and never used again. So I updated the plugin to use only one subscription by user. Obviously a user can only have one unique subscription now, but I think it can be nice if in the future a config option is implemented to allow a user to have multiple subscriptions.


🔄 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/2887 **Author:** [@Konixy](https://github.com/Konixy) **Created:** 6/3/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/stripe_reuse_existing_subscription` --- ### 📝 Commits (2) - [`7e532a8`](https://github.com/better-auth/better-auth/commit/7e532a83ca89424b63bd7f925654f9327dd4d493) feat(stripe): Reuse existing subscription - [`061694b`](https://github.com/better-auth/better-auth/commit/061694bb1467cbb3a4112f71480d4e4f056218ca) Merge branch 'better-auth:main' into feat/stripe_reuse_existing_subscription ### 📊 Changes **1 file changed** (+4 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/index.ts` (+4 -5) </details> ### 📄 Description I don't know if it's intentional but every time a user proceed to checkout and then cancel, an "incomplete" subscription is created on the db and never used again. So I updated the plugin to use only one subscription by user. Obviously a user can only have one unique subscription now, but I think it can be nice if in the future a config option is implemented to allow a user to have multiple subscriptions. --- <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 11:50:22 -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#4543