#blargz_address-validation-japan

1 messages · Page 1 of 1 (latest)

median zephyrBOT
#

👋 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.

hazy meadow
#

Hi 👋

I'm having a hard time following your reasoning. Do you have an example front-end I could test with?

random gust
#

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

hazy meadow
#

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?

random gust
#

both of these images are after I try to call stripe.confirmSetup(elements)

hazy meadow
#

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

random gust
#

the form hasn't expanded yet though because the user hasn't interacted with it?

hazy meadow
#

Oh, wait. Yes I forgot I was including a default phone number

random gust
#

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

hazy meadow
#

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

random gust
#

i've generally noticed that using address element, if multiple fields are invalid only one will surface in the error

hazy meadow
#

The message isn't wrong, but no phone number elements is displayed

random gust
#

while the ZIP is not filled, stripe actually does not allow progress of the setupIntent or paymentIntent

hazy meadow
#

Okay I can file this feedback internally to get the team who owns this product to take a look.

random gust
#

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

hazy meadow
#

Yes, that approach is safe. I will still flag to the team because we shouldnt' be doing things like this

random gust
#

sounds good, thanks a bunch @hazy meadow , hoping this will get fixed!!

hazy meadow
#

🤞

#

Okay, feedback filed. Someone will be taking a look at this soon.

random gust
#

Is it possible for me to track a will/won't fix decision on this issue?

hazy meadow
#

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.

random gust
#

🍻 cheers thanks Snufkin!

hazy meadow
#

Happy to help 🙂