#maverick_paymentelement-change

1 messages ¡ Page 1 of 1 (latest)

small terraceBOT
#

👋 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/1288994837890334841

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

next vortex
#

@bleak saffron Is there a URL where I can reproduce what you see? Or do you have screenshots or similar? I admit I don't really follow what you're describing.

#

maverick_paymentelement-change

bleak saffron
#

I'm only seeing it in my dev/staging env right now AFAIK

next vortex
#

Can you share some easy repro?

bleak saffron
#

that payment info box used to show a postal code as well (but that gets auto hidden) and clicking pay won't submit anymore

#

click one-time payment, then next

hot phoenix
#

@bleak saffron Same issue here.

#

Also only in dev/staging.

next vortex
#

Can one of you share some example code? You have an uncommon layout where all the fields are on one line. I'm assuming you're doing some kind of card-only collection with PaymentElement with a specific width/height
But looking

bleak saffron
#

let appearance = {
theme: 'stripe'
};
let elements = this.stripe.elements({ appearance, clientSecret });
let paymentElementOptions = {
layout: 'tabs',
fields: {
billingDetails: {
address: {
country: 'never'
}
}
}
};
let paymentElement = elements.create('payment', paymentElementOptions);

#

I think that's the relevant bit

next vortex
#

gotcha. So to be clear the bug is that you are disabling the country dropdown and expect the postal code to still be here, and it was before but suddenly isn't anymore?

bleak saffron
#

Yes, but we have had the same code (disabling country) there for a while. Something changed where the postalCode field is hidden and I am unable to complete the transaction

next vortex
#

yeah I can understand that but I am trying to understand what exact behaviour you were getting before?

bleak saffron
#

that's correct it was showing the postalCode field before

#

it would also show the payment method tabbed selector

next vortex
#

It's so strange because that dropdown for the country controls what format for the postal code to expect and whether to collect it (we only do it in a few countries)

and the "tabs" are more "what payment methods have you enabled"

bleak saffron
#

it does seem like on load it has all the fields, but then hides it after

next vortex
#

Gotcha, okay it seems that we are working on a similar bug report so I think it's our bug and we're working on a fix

bleak saffron
#

Ahhh good to know, thank you so much for helping debug @next vortex, really appreciate your time and help!

next vortex
#

sure thing, sorry for the hassle

supple ice
#

Hi, we are also facing the exact same issue. Do we have an ETA when it will be fixed?

next vortex
#

No ETA yet but we're working on it

supple ice
#

Is there a quick fix that we can do on our end?

#

@next vortex

next vortex
#

bring the country dropdown back

small terraceBOT