[PR #7459] [MERGED] fix(stripe): allow re-subscribing to the same plan when subscription has expired #7327

Closed
opened 2026-03-13 13:32:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7459
Author: @DIYgod
Created: 1/19/2026
Status: Merged
Merged: 1/20/2026
Merged by: @himself65

Base: canaryHead: canary


📝 Commits (4)

  • 79c574f fix(stripe): allow re-subscribing to the same plan when subscription has expired
  • 20ffcf7 chore: add comment
  • f212bf9 test: add case for re-subscribing behavior with periodEnd
  • 650bf64 Merge branch 'canary' into canary

📊 Changes

2 files changed (+70 additions, -1 deletions)

View changed files

📝 packages/stripe/src/routes.ts (+4 -1)
📝 packages/stripe/test/stripe.test.ts (+66 -0)

📄 Description

Add periodEnd check to ALREADY_SUBSCRIBED_PLAN validation to allow users to re-subscribe to the same plan when their subscription period has ended.


Summary by cubic

Allow users to re-subscribe to the same plan after their previous subscription period has ended. Updated ALREADY_SUBSCRIBED_PLAN validation to check periodEnd, so it only blocks when the active subscription is still unexpired.

Written for commit 650bf64df5. 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/7459 **Author:** [@DIYgod](https://github.com/DIYgod) **Created:** 1/19/2026 **Status:** ✅ Merged **Merged:** 1/20/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (4) - [`79c574f`](https://github.com/better-auth/better-auth/commit/79c574fe602d5fe70a40617765c088a363e6265b) fix(stripe): allow re-subscribing to the same plan when subscription has expired - [`20ffcf7`](https://github.com/better-auth/better-auth/commit/20ffcf7be154a76a8f03ede38a04c34508a29cba) chore: add comment - [`f212bf9`](https://github.com/better-auth/better-auth/commit/f212bf9eb4da51e99ecc39c48ab85197c5b519e8) test: add case for re-subscribing behavior with periodEnd - [`650bf64`](https://github.com/better-auth/better-auth/commit/650bf64df5d7fbb971018d5dd230a0df6a37376c) Merge branch 'canary' into canary ### 📊 Changes **2 files changed** (+70 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/routes.ts` (+4 -1) 📝 `packages/stripe/test/stripe.test.ts` (+66 -0) </details> ### 📄 Description Add periodEnd check to ALREADY_SUBSCRIBED_PLAN validation to allow users to re-subscribe to the same plan when their subscription period has ended. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Allow users to re-subscribe to the same plan after their previous subscription period has ended. Updated ALREADY_SUBSCRIBED_PLAN validation to check periodEnd, so it only blocks when the active subscription is still unexpired. <sup>Written for commit 650bf64df5d7fbb971018d5dd230a0df6a37376c. 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:32:20 -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#7327