cartToken and token (within window.Shopify.Checkout) on order status page.

cartToken and token (within window.Shopify.Checkout) on order status page.

justinmacmillin
Shopify Partner
2 0 0

I have JavaScript running on my thank you and order status pages via the “Additional Scripts” section in Settings (Settings -> Checkout -> Order status page -> Additional Scripts).

 

On the thank you page, window.Shopify.Checkout has both a cartToken and a token attribute. On the order status page, only token is available.

 

I noticed the format of cartToken is different between my Shopify Plus store (that is not upgraded to Checkout Extensibility) and my development store with Checkout Extensibility Preview:

- Shopify Plus store: 0e6e3fe45a498ffd9bf018b277739080

- development store: Z2NwLXVzLWVhc3QxOjAxSERRWEM2MkNHSkRXRTk4WEEwM1pWV004

 

I wasn't able to find documentation for cartToken and token - is there documentation available for these values? Are these values different / unavailable for different levels of Shopify (Advanced vs Plus)? Are these values affected by whether or not the store has upgraded from checkout.liquid to Checkout Extensibility?

 

Thank you!

Replies 0 (0)