Skip to content

Commit

Permalink
fix: fixing apple pay express flow
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 committed Jul 19, 2024
1 parent 27d979e commit 9025231
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,7 @@ initializeCheckout()
},
onShippingContactSelected: async (resolve, reject, event) => {
const { shippingContact } = event;
const shippingMethods = await fetch(
`${window.shippingMethodsUrl}?${new URLSearchParams({
city: shippingContact.locality,
country: shippingContact.country,
countryCode: shippingContact.countryCode,
stateCode: shippingContact.administrativeArea,
postalCode: shippingContact.postalCode,
})}`,
);
const shippingMethods = await getShippingMethod(shippingContact);
if (shippingMethods.ok) {
shippingMethodsData = await shippingMethods.json();
if (shippingMethodsData.shippingMethods?.length) {
Expand Down

0 comments on commit 9025231

Please sign in to comment.