#jay_cardelement-postalcode
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/1293253454093091020
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
jay_cardelement-postalcode
@analog carbon the ask depends on the card being entered. If you use our Canadian test card it's going to ask for postal code. Try the test card 4000001240000000 and see
And the postal code is not required though it's encouraged. You can disable collecting it though using this option: https://docs.stripe.com/js/elements_object/create_element?type=card#elements_create-options-hidePostalCode
As for your last question: that's impossible. We use the card's BIN to determine the likely billing country. If you have a US card with a Canadian address, we will expect a US zip code.
It's a long standing limitation. That's partly why when we built PaymentElement we added a clear country dropdown to avoid that situation
So this card eleemnt is used in our saas web forms app - so different organizations will have different requirements on if they want the zip code to show.
So in this situation, what do you suggest?
That's why I asked if there is a way to turn this requirement off from the admin dashboard so users can manage this requirement themselves from Stripe
did you see my answer above? I addressed the why and the way to disable collection
I saw your answer on how to disable collection at the code level. I saw that article before I came here
My question was from the stripe management area as well but I'm assuming not
I don't really know what "the stripe management area" could mean
when you log into stripe.com
ah gotcha the Dashboard. Then unfortunately the Dashboard doesn't support changing/localizing the postal code format today unfortunately. I'd recommend reaching out to our support team to flag this limitation: https://support.stripe.com/contact
i read in another forum that if there is a zip/postal code field on the form already, the stripe card element will not ask for it - is this valid?
What do you refer to this area as?
Hello! I'm taking over and catching up...
Thanks!
You can ask for a zip/postal code using your own form, pass that value in using code, and turn off zip/postal code collection in the Card Element (also done in code).
The area is referred to as the Stripe Dashboard.
How can I pass the postal/zip from our from to stripe element?
Are you asking how you can remove the zip/postal code collection from the Card Element?
I am asking about your suggestion here - passing that value to the card element
Oh, gotcha. It depends on how your integration works. Are you using stripe.confirmCardPayment or something else?
Embedding the iframe