#letscheckthis_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1417866333491564574
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey there, I'm not sure why this payment description used french, as that doesn't correspond to the customer location/locale I can see. I'm going to keep looking into this.
While I do that, I would recommend not relying deeply on text description fields like this in your integration
Instead, since this payment is associated with an Invoice, you can rely on the enumerated invoice billing_reason which is subscription_create here, as you can see in this invoice event:
https://dashboard.stripe.com/events/evt_1S7bW9JGtlvk1dohVmITf6NR
https://docs.stripe.com/api/invoices/object#invoice_object-billing_reason
Alrighty, we did indentify an issue related to this that should now be resolved. This was unexpected and unless the locale is set in more expected ways, you should continue to see this description in english only.
so, just to confirm, even if the locale of the browser is set to french, we will still get the description in English, right?
Hi taking over here
Browser locale will set the locale on the session and hence the description
So if the browser is set to french, you will get description in french
The issue here was that browser was actually set to English but you got description in French
That has since been fixed
I just tried setting my browser locale to french and I still get the transaction description in English, here is the payment id pi_3S8MYuJGtlvk1doh0pc5rpbW
To set the browser locale i open chrome dev tools -> 3 dots next to Console -> sensors -> Location -> Other and set locale to fr-FR. From this guide https://stackoverflow.com/questions/37221494/how-to-change-the-locale-in-chrome-browser
It should be picking it up because i can see our website translated in French.
Hm weird
I'm seeing that it recognizes browser locale
But then still sets locale to en on checkout
I am sorry for being such a pain in the back ๐
So I think this would actually be a separate issue
Because payment intent description localization comes from the checkout session locale
And the checkout session locale was set to English here
But your browser locale was set to French, so the piece that sets locale on Checkout Session is what's behaving unexpectedly here
Oh wait
You have locale set to en on the pricing table
So browser locale won't matter. That takes precedence
oh great, so the description should always be in English, even with a French locale, right? That initial transaction that I sent you was some temporary glitch that you fixed?