#kevin_docs

1 messages ยท Page 1 of 1 (latest)

sharp girderBOT
#

๐Ÿ‘‹ 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/1439913189302206595

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vernal bronze
#

hey there! the Payment Element identifies the country based on the card number entered - setting the locale affects the language, but doesn't affect the country-specific validation

prisma heath
#

Oh okay but what are the conditions that pre-select the country at the time the user haven't entered any information about the credit card? ๐Ÿค”

vernal bronze
#

Just running a quick test to confirm

prisma heath
#

Okay, waiting for your answer ๐Ÿ™

vernal bronze
#

it's not possible to pre-select a country for the Payment Element, but this may not be relevant depending on what your ultimate goal is

it sounds like what you want is control over which address fields are collected in the Payment Element

the Payment Element is a bit different from our other Elements (Card, Address, etc) in that it only collects a postal code where Stripe's optimisations indicate its impactful for conversion, so it's not just dependent on the country

sharp girderBOT
prisma heath
#

It was more my product manager that was asking why it was always "France" pre-selected, she wants to know why it's not "UK" when my domain name finish with .co.uk
Because a UK user in our website is less likely to have a french credit card

half iris
#

๐Ÿ‘‹ Hi there! I'm taking over for my colleague. Let me catch up

#

The country initially shown in the Payment Element is based on the country associated with the IP address of the customer

prisma heath
#

Oh okay thank you ๐Ÿ˜ƒ I'll tell this to my product manager

#

Perfect, she's fine with that answer ๐Ÿ˜ƒ

half iris
#

Great. Is there anything else we can help with?

prisma heath
#

Not for now, maybe later, thanks ๐Ÿ˜ƒ

half iris
#

Alright, great! We'll be here ๐Ÿ˜„