[PR #7068] [MERGED] feat(stripe): add disableRedirect option for subscription and billing #32655

Closed
opened 2026-04-17 23:24:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7068
Author: @himself65
Created: 12/30/2025
Status: Merged
Merged: 12/31/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/12/31/stripe


📝 Commits (1)

  • d9036b2 feat(stripe): add disableRedirect option for subscription and billing portal actions

📊 Changes

2 files changed (+31 additions, -6 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+6 -1)
📝 packages/stripe/src/routes.ts (+25 -5)

📄 Description

Summary by cubic

Adds a disableRedirect option to Stripe subscription upgrade, cancellation, and billing portal endpoints. This lets apps opt out of automatic redirects and handle navigation manually while keeping default behavior unchanged.

  • New Features
    • Add disableRedirect (default false) to upgradeSubscription, cancelSubscription, and createBillingPortal.
    • Responses now set redirect to !disableRedirect and include url for manual navigation.
    • Update validation for cancelSubscription and createBillingPortal; improve docs and examples for all affected endpoints.

Written for commit d9036b2930. 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/7068 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/30/2025 **Status:** ✅ Merged **Merged:** 12/31/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/31/stripe` --- ### 📝 Commits (1) - [`d9036b2`](https://github.com/better-auth/better-auth/commit/d9036b2930902efb86e4864ba01d994c304fce31) feat(stripe): add disableRedirect option for subscription and billing portal actions ### 📊 Changes **2 files changed** (+31 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+6 -1) 📝 `packages/stripe/src/routes.ts` (+25 -5) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a disableRedirect option to Stripe subscription upgrade, cancellation, and billing portal endpoints. This lets apps opt out of automatic redirects and handle navigation manually while keeping default behavior unchanged. - **New Features** - Add disableRedirect (default false) to upgradeSubscription, cancelSubscription, and createBillingPortal. - Responses now set redirect to !disableRedirect and include url for manual navigation. - Update validation for cancelSubscription and createBillingPortal; improve docs and examples for all affected endpoints. <sup>Written for commit d9036b2930902efb86e4864ba01d994c304fce31. 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-04-17 23:24:29 -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#32655