Url Redirecting

Topic summary

A developer using the Storefront API is experiencing unwanted redirects to *.myshopify.com after checkout and shipping steps, instead of staying on their custom domain (e.g., localhost:3000).

Root Cause:
Shopify enforces redirection to Shopify-hosted checkout URLs for security and PCI compliance reasons when using the Storefront API.

Potential Solutions:

  • Shopify Plus users: Can leverage “Checkout Extensibility” or “checkout.liquid” for greater UI customization, though checkout remains Shopify-hosted.
  • Complete domain control: Requires building a fully custom checkout solution outside Shopify’s standard infrastructure.

Status: The issue is a platform limitation rather than a bug; no workaround exists for standard Shopify plans to keep checkout on a custom domain.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hello, I am using storefront api, that will fetch products from the shopify and also add a payment gateway(just for testing) and the problem is right after the checkouts and shipping i am redirected to *.shopify.com instead of my own url (like http://localhost:3000), is there any solution how i can solve this cause redirecting me to the shopify url makes no sense.

Hi @ashimjunior12 ,

Shopify mandates redirection to a Shopify-hosted checkout (e.g., *.myshopify.com) after the cart and shipping steps when utilizing the Storefront API. This measure is essential for maintaining security and PCI compliance.

For enhanced customization, Shopify Plus offers “Checkout Extensibility” or “checkout.liquid.” These options, while still Shopify-hosted, provide greater control over the user interface and are ideal for enterprise-level brands. Should you require complete control over the checkout process on your own domain, a custom solution would be necessary.

Please let me know if you have any questions, Feel free to refer Signature ---->

Thanks !