Skip to content

Increases zip code padding check to 4 characters for UK addresses#1151

Open
nnlamb25 wants to merge 1 commit into
Shopify:mainfrom
tapcartinc:fix/uk-zip-codes
Open

Increases zip code padding check to 4 characters for UK addresses#1151
nnlamb25 wants to merge 1 commit into
Shopify:mainfrom
tapcartinc:fix/uk-zip-codes

Conversation

@nnlamb25
Copy link
Copy Markdown

What this does

Apple Pay anonymizes postal codes for British and Canadian addresses until the user has accepted payment. (source)

The mobile-buy-sdk accounts for this by adding padding to British and Canadian postal codes when Apple Pay only shows 3 characters. Some British postal codes have 4 characters, though, causing no padding to be added which causes errors in Apple Pay when attempting to get shipping costs.

An example postal code that causes this is WC2H 9BH in London. Apple pay will shorten this to WC2H .

This change increases the number of characters by 1 to allow these British postal codes to still apply padding.

@cocoahero cocoahero changed the base branch from develop to main June 30, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant