Closed moesalih closed 5 years ago
Nevermind. I saw a response in an older issue: https://github.com/Shopify/mobile-buy-sdk-ios/issues/670#issuecomment-311730007
You have to allow partial addresses when creating the checkout:
let input = Storefront.CheckoutCreateInput.create(lineItems: .value(items), allowPartialAddresses: .value(true))
Part of the Apple Pay flow is to get a partial shipping address from Apple Pay and then update the checkout with that partial address to get available shipping rates.
I'm updating the checkout just like in the sample app, but I'm getting a couple of user errors:
Last name can't be blank. Address1 can't be blank
, but there's no address1 and lastname at this point in the flow.What am I missing?
Here's the address update function, which is similar to the sample app: