Quantcast
Channel: Opinion: Shopify Community - Shopify Apps
Viewing all articles
Browse latest Browse all 11091

Match getCart() on client with REST API? by Peter Franklin

$
0
0

I'm trying to connect the cart from the client (JS API) with the webhook on the backend.  


When the cart is created, I request the carts contents with Shopify.getCart(). The object returned contains property 'token' (I have "7979519c6031485f2431c7a47d4cd232").


When this cart is converted to order (i.e. order placed) the order object is sent via web hook 'orders/create'. This order object contains property 'cart_token' BUT this field does not match the token received via client side API (I have "ee50b4c59e1fd2a32c81e609dbe50dad").


Question is: is there a way to match the cart which I retrieve via JavaScript API and order received via Shopify REST API?


Viewing all articles
Browse latest Browse all 11091

Trending Articles