[PR #7421] [MERGED] feat(stripe): add support for locale option to upgradeSubscription #7298

Closed
opened 2026-03-13 13:31:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7421
Author: @bytaesu
Created: 1/16/2026
Status: Merged
Merged: 1/16/2026
Merged by: @bytaesu

Base: canaryHead: 2026-01-17/feat/upgrade-subscription-locale


📝 Commits (5)

  • a659a87 feat: add support for locale option to upgradeSubscription
  • 06f132b chore: add comment for locale to createBillingPortal
  • ebf207a docs: update content for locale option
  • 85cf344 docs: comment clearer line
  • f07e89c Merge branch 'canary' into 2026-01-17/feat/upgrade-subscription-locale

📊 Changes

2 files changed (+34 additions, -5 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+12 -5)
📝 packages/stripe/src/routes.ts (+22 -0)

📄 Description


Summary by cubic

Added a locale option to subscription.upgrade to control the language shown in Stripe Checkout. Updated docs and validation; if locale is omitted or set to auto, Stripe uses the browser’s locale.

  • New Features
    • subscription.upgrade accepts locale?: string and forwards it to Stripe Checkout.
    • Updated Stripe plugin docs and schema metadata to document and validate locale.

Written for commit 85cf344486. 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/7421 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 1/16/2026 **Status:** ✅ Merged **Merged:** 1/16/2026 **Merged by:** [@bytaesu](https://github.com/bytaesu) **Base:** `canary` ← **Head:** `2026-01-17/feat/upgrade-subscription-locale` --- ### 📝 Commits (5) - [`a659a87`](https://github.com/better-auth/better-auth/commit/a659a87f87ab023c49318df8ba04477e49131541) feat: add support for locale option to upgradeSubscription - [`06f132b`](https://github.com/better-auth/better-auth/commit/06f132bf6a23283bbdfd4080d26ec1afb924e947) chore: add comment for locale to createBillingPortal - [`ebf207a`](https://github.com/better-auth/better-auth/commit/ebf207ab042d5c4a624a0eebf4df7aeaa75ba2c0) docs: update content for locale option - [`85cf344`](https://github.com/better-auth/better-auth/commit/85cf3444863d1e34bb8cc852c6e69a866774a56b) docs: comment clearer line - [`f07e89c`](https://github.com/better-auth/better-auth/commit/f07e89c3f62a91551133255ab365af095d6a1e6c) Merge branch 'canary' into 2026-01-17/feat/upgrade-subscription-locale ### 📊 Changes **2 files changed** (+34 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+12 -5) 📝 `packages/stripe/src/routes.ts` (+22 -0) </details> ### 📄 Description - Closes https://github.com/better-auth/better-auth/issues/6757 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a locale option to subscription.upgrade to control the language shown in Stripe Checkout. Updated docs and validation; if locale is omitted or set to auto, Stripe uses the browser’s locale. - **New Features** - subscription.upgrade accepts locale?: string and forwards it to Stripe Checkout. - Updated Stripe plugin docs and schema metadata to document and validate locale. <sup>Written for commit 85cf3444863d1e34bb8cc852c6e69a866774a56b. 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:31:08 -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#7298