#blargz_address-validation-japan
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/1263240598677094552
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi 👋
I'm having a hard time following your reasoning. Do you have an example front-end I could test with?
Nothing in production that I can share - we are currently working to switch our address collection to stripe
if you have an environment with a payment + address element setup I can try to repro it there
trying to pull some screenshots
I have my own local integration of Payment Element w/ Address Element.
Can you descripe the explicit repro steps to see the issue? Starting with a blank form that defaults to the US?
The address field is cutoff in your second photo. In my implementation, when Japan is selected, the fields re-order to Zip, Prefecture, Street Address
the form hasn't expanded yet though because the user hasn't interacted with it?
Oh, wait. Yes I forgot I was including a default phone number
Here is when i start typing some more and select “enter address manually”
i'm on react-stripe-js 1.14.2 and stripe-js 1.42.1
Yes I see. So the issue is that the form will fail validation and now allow confirmation, but it won't highlight the missing field?
Interesting Even the validation failure message doesn't point to the zip code
That isn't helpful
i've generally noticed that using address element, if multiple fields are invalid only one will surface in the error
The message isn't wrong, but no phone number elements is displayed
while the ZIP is not filled, stripe actually does not allow progress of the setupIntent or paymentIntent
Okay I can file this feedback internally to get the team who owns this product to take a look.
as a workaround, I would like to show the full expanded form like described here: https://stackoverflow.com/questions/75164166/stripe-dont-collapse-address-element-by-default. I also wanted to ask if I'm safe to use a dummy value e.g. "PatternThatWillNeverMatchAState" for the state field
i.e., the state field is always rendered as a dropdown, and never a text input
Yes, that approach is safe. I will still flag to the team because we shouldnt' be doing things like this
sounds good, thanks a bunch @hazy meadow , hoping this will get fixed!!
Is it possible for me to track a will/won't fix decision on this issue?
Your best option is to write in to Support https://support.stripe.com/contact.
You might get some pushback initially if they are confused about what your ask is. So I recommend being very clear that you talked with me on Discord, you are aware this is a known issue, and you want to be kept up to date regarding any work on this. They should be able to find the internal ticket and use that to keep you posted on development.
🍻 cheers thanks Snufkin!
Happy to help 🙂