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 status after Webview closed #1147

Open harishvitta opened 3 years ago

harishvitta commented 3 years ago

Currently, we don't have a query or mutation to know the checkout status. This would be useful once web checkout completed. That information is useful to handle cart after completing checkout.

MihailStoicaGH commented 3 years ago

You can call the GET Checkout API and you'll see a property "order" in there, if it's not nil that means that your order is completed. You can implement this in the checkoutViewController's viewWillAppear so you can fetch as soon as you close the webView