[GH-ISSUE #4009] [Stripe] Add Locale to Billing Portal Endpoint #27119

Closed
opened 2026-04-17 17:56:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @JE4GLE on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4009

Is this suited for github?

  • Yes, this is suited for github

I want the user to have the same locale as set at my website.

Describe the solution you'd like

Add an optional locale parameter and add it to the creation of the billing portal url:

	const session = await stripeClient.billingPortal.sessions.create({
		locale: 'de',
		customer: stripeUserId,
		return_url: url
	});

Describe alternatives you've considered

Creating the billing portal url myself.

Originally created by @JE4GLE on GitHub (Aug 14, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4009 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I want the user to have the same locale as set at my website. ### Describe the solution you'd like Add an optional locale parameter and add it to the creation of the billing portal url: ```typescript const session = await stripeClient.billingPortal.sessions.create({ locale: 'de', customer: stripeUserId, return_url: url }); ``` ### Describe alternatives you've considered Creating the billing portal url myself.
GiteaMirror added the lockedenhancement labels 2026-04-17 17:56:25 -05:00
Author
Owner

@melsonic commented on GitHub (Aug 17, 2025):

Hi @Bekacru, can I work on this one?

<!-- gh-comment-id:3194437517 --> @melsonic commented on GitHub (Aug 17, 2025): Hi @Bekacru, can I work on this one?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27119