#an2one_payment-element-locale
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1246008578146304000
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
hello! give us a while to look into this!
Hi
Info modal's payment terms text has not been translated to Italian. The rest content of the modal has been translated. How to fix it?
What is the local of your browser ?
Otherwise, you can initialize the Stripe client and setting a local:
https://docs.stripe.com/js/appendix/supported_locales
pl-PL
Stripe Element pickes the local of the browser
There is no polish in the modal, Most of the text is translated to Italian and the text below about terms is in english. Moreover every different locale works as expected.
How to do it in a Next.js app?
Can you share a screenshot please ?
You can do something like this:
const stripePromise = loadStripe("pk_test_...",
{
locale: "IT"
}
);
Same result
I see, can you try the solution I shared above ?
.
I just made a test and it works fine
Are you using the latest Stripe SDK in your frontend ?
"dependencies": {
"@stripe/react-stripe-js": "^2.7.1",
"@stripe/stripe-js": "^1.53.0",
}
Do you need entire package.json?
Let me check those versions
Not able to reproduce neither
Do you have a hosted page for your website that we can reproduce ?
We've got production page but it's not available right now because of internal reasons, maybe I can provide you needed information in different way? Do you need more code or DOM structure?
Can you download this sample project:
https://docs.stripe.com/payments/quickstart?client=react&lang=node
Make the necessary and minimal update to add the modal, and then share it back with me here in order to reproduce
Working on that
Great, now you need to find the difference between that and your integration
Are you forcing the locale elsewhere in your integration ?
๐ taking over for my colleague. Let me catch up.
would you mind sharing the PaymentIntent ID you're using?
It would be better not sharing but if it's inpossible to reproduce without it let's share
it's just an ID, no one have access to your data unless you share your secret key
so you don't have to worry
Ok
@noble belfry @steady bone Any progress?
you didn't share your PaymentIntent ID
Oh I thought that this is PaymentIntent ID, isn't it?
"pk_test_51MBxq1HBPGE0Qd1QkoMXlmV0fLxA3ExNOKNsD4R1gc31tIuBxNG8oVSgdlLwwLiQy2MxsF1OhuaBgr9gTMfmDBMh00ynZThDfZ",
{
locale: "it-IT",
}
);```
hi! I'm taking over this thread.
that's your publishable API key. The PaymentIntent ID starts with pi_xxx, and can be found in your Stirpe dashboard
And why actually you need this id? Mentioned popup is rendered without it
are you using the deferred intent flow, where you don't use a PaymentIntent to rendrer the Payment Element?
Probably yes, you can see on the screenshot that this is about Klarna's installment
can you share your frontent code?
I already shared it here
having a look
I don't see anything wrong with your code. so I recommend contacting Stripe support about this: https://support.stripe.com/contact
make sure to include all relevant information (code, screenshots, etc.)
But are you able to reproduce this issue? Can you see english text at the bottom?