Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Using temporary orders for cart calculations? by Stefan Hansen

$
0
0

Hi.

We're building a mobile marketplace app, where the user checks out and pays from within the app.

Since the api has no cart functionality, we're looking into using either the ajax api or permalinks, combined with our own cookie/session handling, for keeping track of our users carts. We would like to be able to show shipping and tax totals in our cart, but it seems as though only the shipping options can be fetched through the ajax api. Would it be a viable solution to create an order through the api, read the totals from the response, and then delete the order immediately afterwards?

Also, is it in any way possible to use the "cart_token" property for creating an order?

Thanks,

Stefan


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>