#maverick_paymentelement-change
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/1288994837890334841
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
@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
I'm only seeing it in my dev/staging env right now AFAIK
Can you share some easy repro?
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
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
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
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?
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
yeah I can understand that but I am trying to understand what exact behaviour you were getting before?
that's correct it was showing the postalCode field before
it would also show the payment method tabbed selector
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"
it does seem like on load it has all the fields, but then hides it after
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
Ahhh good to know, thank you so much for helping debug @next vortex, really appreciate your time and help!
sure thing, sorry for the hassle
Hi, we are also facing the exact same issue. Do we have an ETA when it will be fixed?
No ETA yet but we're working on it
bring the country dropdown back