Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 19 hours ago.
Improve this question
I am developing a headless Shopify Shop using Nextjs and React for the Frontend. I have built pretty much the whole store but I have so far been unable to implement a checkout page which is located on the same domain or a subdomain of the rest of my store (for example: "mydomain.com/checkout" or "checkout.mydomain.com") because there is a plethora of conflicting, incomplete and incorrect information on that topic. I have now read people saying that you can use either the Storefront API, the Admin API with a custom sales channel, the Admin API alone, the Checkout API with a custom sales channel, the Checkout API alone or even the JS Buy SDK (which makes the least sense to me). Some people also say it is not possible at all and that you absolutely HAVE to redirect to a shopify domain, but I looked at all the Headless Shopify stores Shopify itself promotes and uses as references for headless stores on this page:
and these are the stores:
so I assume they are 100% positively Headless or Shopify is straight up lying. They ALL use a checkout either on the exact same domain as the rest of the store or on subdomain and NONE of them redirects the user to a different domain on checkout. Can now anyone give me a definite and most importantly CORRECT answer on how I can create a checkout page which will be located on the same domain the rest of my headless store or on a subdomain? I would really appreciate any help as I have been searching for answers on this for weeks. Thank you.
I tried implementing a checkout page on the same domain as my headless shopify store but there is no documentation
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Turbo Multi-language Chat - AI Customer service in one hand