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

WebView Callback iOS #1137

Open Bathant opened 3 years ago

Bathant commented 3 years ago

Hello, Is there any callback or a query I could call after dismissing the WebView checkout page?

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