Start Validating zip code

Validating zip code

Included here are examples of how CDXZip Stream answers the question: Are your zip codes real?

This means that they have to be written standalone without additional characters when they are not covered by the format.

The result of the zip/postal code checks are ones that we pass directly through from the cardholder’s bank.

You can find the documentation of the current version at docs.Post Code — Zend Framework 2 2.0.7 documentation knows more than 160 different postal code formats. You can either use a fully qualified locale or you can set your own format manually.

Using a locale is more convenient as Zend Framework already knows the appropriate postal code format for each locale; however, you need to use the fully qualified locale (one containing a region specifier) to do so.

Next, head over the Validation tab and select Reg Ex in the Answer Format dropdown menu.

In the Common Patterns dropdown menu that appears after selecting Regex, select US Zip Code 5 or 9 digit (w/ dash).

If the cardholder has recently moved, it may take their bank a while to have the correct zip code on file for them.