Our app use Create Checkout API to generate the checkout page. We get the property "webUrl" and redirect the customer to the checkout page.
We face an issue is that the webUrl return the checkout URL base on ".myshopify.com". Such as
Is there any way to return the store's domain rather than .myshopify.com?
I know we can replace the .myshopify.com to the store's domain. But it will cause the checkout token change which will let our app lose track of the checkout and the order. It's a matter because our app needs to record each checkout's token when it was generated.
Thanks for help!
Solved! Go to the solution
At this time the storefront API doesn't officially support using the store's domain. As you mentioned it's possible to manually change the URL, but this can cause issues with session and cart details being lost. We're looking in to adding support for this on Storefront API, any changes will be announced in the changelog so keep an eye there for updates.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution