[PR #4108] [MERGED] feat(stripe): Add locale to stripe billing portal options #30793

Closed
opened 2026-04-17 21:49:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4108
Author: @melsonic
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/29/2025
Merged by: @himself65

Base: canary ← Head: feat/locale-to-stripe-billing-portal


📝 Commits (6)

  • 1838612 Add locale to stripe billing portal endpoint
  • 428813c Added docs
  • e17664b added supported locales as a note
  • 78d6b11 fix: format issue
  • ddc2b80 removed default value for locale in docs
  • eb3bc0b Merge branch 'canary' into feat/locale-to-stripe-billing-portal

📊 Changes

2 files changed (+14 additions, -0 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+7 -0)
📝 packages/stripe/src/index.ts (+7 -0)

📄 Description

Summary by cubic

Add optional locale support to the Stripe billing portal endpoint so apps can control the portal language. Docs updated to show the new field and behavior.

  • New Features
    • Accepts locale in the POST body (optional) and passes it to billingPortal.sessions.create.
    • Validates locale type against Stripe’s supported locales and documents usage.

Demo Video:

https://github.com/user-attachments/assets/567b89a0-f117-4ce3-95ed-3dcf1e66231e

/fixes #4009


🔄 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/4108 **Author:** [@melsonic](https://github.com/melsonic) **Created:** 8/20/2025 **Status:** ✅ Merged **Merged:** 8/29/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/locale-to-stripe-billing-portal` --- ### 📝 Commits (6) - [`1838612`](https://github.com/better-auth/better-auth/commit/1838612765c932246ce54a3516d80d7417627556) Add locale to stripe billing portal endpoint - [`428813c`](https://github.com/better-auth/better-auth/commit/428813c226827967cb881577260788696557a57e) Added docs - [`e17664b`](https://github.com/better-auth/better-auth/commit/e17664b52205686ca58f2fee68ee18a3752a4ae9) added supported locales as a note - [`78d6b11`](https://github.com/better-auth/better-auth/commit/78d6b1199d0b07872b28a2c993a7c1ac599504a4) fix: format issue - [`ddc2b80`](https://github.com/better-auth/better-auth/commit/ddc2b80853d2fb8e8317aba9f6134541db7117d1) removed default value for locale in docs - [`eb3bc0b`](https://github.com/better-auth/better-auth/commit/eb3bc0bd5513f47679a75e4bd3e4af7f4a604183) Merge branch 'canary' into feat/locale-to-stripe-billing-portal ### 📊 Changes **2 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+7 -0) 📝 `packages/stripe/src/index.ts` (+7 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add optional locale support to the Stripe billing portal endpoint so apps can control the portal language. Docs updated to show the new field and behavior. - New Features - Accepts locale in the POST body (optional) and passes it to billingPortal.sessions.create. - Validates locale type against Stripe’s supported locales and documents usage. <!-- End of auto-generated description by cubic. --> Demo Video: https://github.com/user-attachments/assets/567b89a0-f117-4ce3-95ed-3dcf1e66231e /fixes #4009 --- <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 21:49:12 -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#30793