#01239_unexpected

1 messages ¡ Page 1 of 1 (latest)

outer birchBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1218149212689141820

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

unreal caveBOT
fringe axle
#

Hi, let me help you with this.

#

Could you please share the Checkout ID and Customer ID?

gritty citrus
#

Sure, cs_test_b1WJjk9UeM1vFKmmQd24j2T1UK2rsG7eSFd5YeAIMN351rFXSZwv2TSq5i and cus_Pk216mA8cSEWAm

outer birchBOT
jolly meadow
#

Hey! Taking over for my colleague. Let me catch up.

#

We see this as a bug. When CheckoutSession has locale=de it should take higher priority than the browser language. Can this be changed?
Actually that's how it was designed, the customer browser has higher priority than the one provided using the API

#

The reason behind, is that the customer knows their preferences (browser) better then the merchant.

gritty citrus
#

So far we only have german users, so the automatically created customer should also be german, regardless if the specific person creating the subscription has his browser setting in english or whatever language. Its about the invoices of the subscription, we want them in german.

If you can not change that behaviour can you provide additional properties to the CheckoutSession which can influence the language of the automatically created customer?

jolly meadow
#

No currently there is not this option, what you can do is to create the Customer (with german as default local) using the API and then pass it to the checkout session

gritty citrus
#

Ok, thanks for such a quick answer, even if I disagree with that priority of browser language > locale of CheckoutSession which was specifically set by us.