Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452
stars
199
forks
source link
Increases zip code padding check to 4 characters for UK addresses #1151
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.
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 toWC2H
.This change increases the number of characters by 1 to allow these British postal codes to still apply padding.