[PR #2939] [CLOSED] fix(stripe): allow the user to upgrade a plan with an amount of seats #21465

Closed
opened 2026-04-15 20:23:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2939
Author: @TheYoxy
Created: 6/7/2025
Status: Closed

Base: mainHead: fix/2890


📝 Commits (1)

  • deae102 fix(stripe): allow the user to upgrade a plan with an amount of seats

📊 Changes

2 files changed (+204 additions, -2 deletions)

View changed files

📝 packages/stripe/src/index.ts (+3 -2)
📝 packages/stripe/src/stripe.test.ts (+201 -0)

📄 Description

Closes: #2890

When trying to upgrade an existing subscription, use the quantity from the request instead of using the default 1 value.

I've also added a check to verify that the seats are not the same, since it tries to change the subscription and I wouldn't be useful to update with the same amount of seats.


🔄 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/2939 **Author:** [@TheYoxy](https://github.com/TheYoxy) **Created:** 6/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/2890` --- ### 📝 Commits (1) - [`deae102`](https://github.com/better-auth/better-auth/commit/deae1023149ce327d22f37ed96b45fdd881595bc) fix(stripe): allow the user to upgrade a plan with an amount of seats ### 📊 Changes **2 files changed** (+204 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/index.ts` (+3 -2) 📝 `packages/stripe/src/stripe.test.ts` (+201 -0) </details> ### 📄 Description Closes: #2890 When trying to upgrade an existing subscription, use the quantity from the request instead of using the default 1 value. I've also added a check to verify that the seats are not the same, since it tries to change the subscription and I wouldn't be useful to update with the same amount of seats. --- <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-04-15 20:23:24 -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#21465