PaymentAddress: postalCode property
Deprecated
Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.>
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
The postalCode read-only property of the
PaymentAddress interface returns a string containing a code used by a
jurisdiction for mail routing, for example, the ZIP Code
in the United States or the Postal Index Number (PIN code)
in India.
Value
A string which contains the postal code portion of the address. A postal code is a string (either numeric or alphanumeric) which is used by a postal service to optimize mail routing and delivery.
Various countries use different terms for this. In most of the world, it's known as the "post code" or "postal code." In the United States, the ZIP code is used. India uses PIN codes.
Browser compatibility
See also
- Universal Postal Union: Universal Post*Code® Database