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

Clear cart / cancel checkout? #1005

Closed mnshukla95 closed 4 years ago

mnshukla95 commented 5 years ago

We are using an integration that will not use Shopify as a payment gateway. However, it is still possible to have a Shopify checkout in this scenario. Is it possible to clear the cart or cancel a Shopify checkout? I know there is a /clear endpoint, but how is that accessed/used with the mobile buy SDK?

parveenBanuS commented 5 years ago

how to remove the cart we added after the sending order???

mahendragp commented 5 years ago

I think you need to disassociate checkout from customer.

tristan-potter commented 4 years ago

I'm not sure what you mean by an integration that doesn't use Shopify as the payment gateway.

You can check the completedAt field of the checkout to determine when an order has been created (and thus that payment was successful). This will work for any payment that is processed using the checkout web URL, regardless of if the payment is processed through Shopify Payments.

Please re-open if this doesn't answer your question.