Postcode or ZIP field condition
Depending on the card number I input, it then shows a Postcode or ZIP field to fill in in the Stripe element.
Using the Stripe test card, it shows postcode, which works well for international addresses by providing a postcode field that accepts more than 5 digits. It appears to accept a very long string to comply with any post code format worldwide.
I tried one of my card's and it shows ZIP field. I am in the US.
Here is a message we received from a Switzerland contact:
No matter what I enter for my postal code, it tells me that it is incomplete and I cannot submit the form. I have tried 6300, 6300 Zug, blank, and 63000 and 15236 (in case it thinks I need a five-digit code or a valid US zip code) but I always get the error "Your postal code is incomplete".
@mattwire how does this logic work?