# Square Single Card Element form requiring Zip code not postcode when locale is en-GB

**URL:** <https://developer.squareup.com/forums/t/square-single-card-element-form-requiring-zip-code-not-postcode-when-locale-is-en-gb/6291>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [June 22, 2022, 2:48pm UTC](https://developer.squareup.com/forums/t/square-single-card-element-form-requiring-zip-code-not-postcode-when-locale-is-en-gb/6291 "2022-06-22T14:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![micheklet](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@micheklet](https://developer.squareup.com/forums/u/micheklet)\
**Post date:** [June 22, 2022, 2:48pm UTC](https://developer.squareup.com/forums/t/square-single-card-element-form-requiring-zip-code-not-postcode-when-locale-is-en-gb/6291/1 "2022-06-22T14:48:18Z")

</div>

When displaying the single card element on my web application, a Zip code is required  
instead of postcode. The location is set to a UK location from the sandbox and the local is set ‘en-GB’. It is not just a question of the label, it validates as a ZIP code and removes letters if you set the postalCode in the CardOptions (Eg ‘L22 8QL’ is displayed as ‘28’). Can this be fixed and if not, what is the alternative to the single card element?

**PaymentPromise :**

payments = window.Square.payments(appId, locationId);  
payments.setLocale(‘en-GB’);

**Card Options :**

return {  
“style”: cardStyle,  
“postalCode”: “L22 8QL”,  
};

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 22, 2022, 5:37pm UTC](https://developer.squareup.com/forums/t/square-single-card-element-form-requiring-zip-code-not-postcode-when-locale-is-en-gb/6291/2 "2022-06-22T17:37:45Z")

</div>

Is this with the Web Payments SDK or the beta deprecated single card element?

If it’s with the Web Payments SDK the Card payment method automatically infers whether to display the postal code and copy (ZIP code, postal code, or postcode) based on the issuing country of the buyer’s credit card. Depending on the card that’s used, the SDK automatically removes the postal code if the card’s issuing country does not require the postal code for the payment. If you’re using a sandbox test value they are US based postal codes. If you enter a card number from a different region then the form will infer the changes. 🙂

---

<div class="post-metadata">

**Author:** ![micheklet](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@micheklet](https://developer.squareup.com/forums/u/micheklet)\
**Post date:** [June 24, 2022, 9:42am UTC](https://developer.squareup.com/forums/t/square-single-card-element-form-requiring-zip-code-not-postcode-when-locale-is-en-gb/6291/3 "2022-06-24T09:42:58Z")

</div>

I am using the the Web Payments SDK and your solution worked. Thanks for your assistance.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 24, 2022, 3:51pm UTC](https://developer.squareup.com/forums/t/square-single-card-element-form-requiring-zip-code-not-postcode-when-locale-is-en-gb/6291/4 "2022-06-24T15:51:46Z")

</div>

Glad to hear it’s working as expected. 🙂
