Closed cocoahero closed 7 years ago
Should note that the sample app (Storefront) appears to have the same issue.
The bug is in the sample app, there needs to be a call to mutationForUpdateCheckout:updatingShippingAddress
to add a shipping address before completing the checkout
@davidmuzi wouldn't that have already been done via the paySession(_ paySession: PaySession, didUpdateShippingAddress:
callback on the PaySessionDelegate
?
Unfortunately, Apple only provides a partial address suitable only to fetch shipping rates on that call. Only once the user authorizes the payment does Apple provide the full shipping address in didAuthorizePayment
The API should return an error in that case. If it knows the checkout isn't really complete, why do we get a successful response?
Agree 💯 %. We are going to fix that.
Thanks! We were beating our heads against this for a while haha.
When attempting to complete an Pay checkout, we are seeing
payment
objects being returned asnil
fromcheckoutCompleteWithTokenizedPayment
. The checkout then appears to be marked as abandoned and listed in ourAbandoned Checkouts
list in Shopify.Here is the returned response from the mutation query: