Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nnlamb25
Copy link

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