Shopify / mobile-buy-sdk-ios

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

Checkout requires payment when checkout paymentDue amount is 0.0 #963

Closed ohthatsjhall closed 5 years ago

ohthatsjhall commented 5 years ago

I'm running into an issue where the amount giftcard or discount that is applied to a checkout is greater than the subtotal, resulting in a paymentDue amount of $0. When trying to complete the checkout, I receive the following error:

(MobileBuySDK.Graph.QueryError.invalidQuery([MobileBuySDK.Graph.QueryError.Reason(message: "Checkout requires payment.", line: nil, column: nil)])

From a user experience perspective, I'd like to avoid having the user input a Credit Card for a $0 purchase if possible. Is there away around this?

rebeccajfriedman commented 5 years ago

Thanks for flagging this issue. We are tracking this issue on our side, and we'll update you here once we've corrected this.

ohthatsjhall commented 5 years ago

thanks @rebeccajfriedman, I'll check back.

jamiemtdwyer commented 5 years ago

Hey @ohthatsjhall, you can now use the CheckoutCompleteFree mutation to complete a checkout that has no outstanding balance after gift card applications 👌