Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Checkout Page's token is not matched Thank you page token

Checkout Page's token is not matched Thank you page token

kcin1993
Shopify Partner
63 0 5

Hi 

 

Our app is a sales channel app, we create checkout with this api. Currently, we found that the thank_you page's url token is not checkout_token anymore. Is there anyone know what happen? 

 

Checkout page url: /checkouts/co/${checkout_token}

Thank_you page url: /checkouts/co/${unknown_id}/thank_you

 

We use the ${checkout_token} to let customer continue shopping after the customer finish checkout and arrived thank_you page. But the ${checkout_token} is not equal ${unknown_id} so that we couldn't query the information of the checkout. 

 

Q.1 Is there any way to use ${unknown_id} to query relative information of the checkout? 

Q.2 What reason cause this happen? Is there any big change in Shopify's checkout policy? 

 

This issue affects our clients a lot, customers couldn't finish the shopping process.
Appreciate your help.

 

Replies 2 (2)

gabrielvictoria
Shopify Partner
14 0 4

Did you find the solution? I have the same issue.

kcin1993
Shopify Partner
63 0 5

Yes. You can use the localStorage in the thank you page to get the cartToken.

window.localStorage.getItem("cartToken")