checkoutUrl redirects to Shopify store front instead of checkout

checkoutUrl redirects to Shopify store front instead of checkout

Derek78756
Tourist
7 0 12

We've been using Shopify as a headless solution for 3 years and were notified by customers today that our checkout was broken.  When we redirected the customers to the Shopify checkoutUrl from the Cart object they were getting redirected to our Shopify storefront page instead.

 

Since we have our own website, we've always just had a password protected Shopify storefront but I found that when I removed the password the checkoutUrl started working as expected again.

 

Our last sale was at 1:16am CST so I know it worked up until that point.  I assume some code change was made by Shopify that prevents the checkoutUrl from working if the Shopify storefront was password protected.

 

Annoying that we went for most of the day without any sales due to this.

Replies 13 (13)

dheersingh
Shopify Partner
3 0 3

Unfortunately, I am also facing this issue and our live website is experiencing this issue. We have a headless implementation of Shopify on our site, when a customer checks out from our headless store, we redirect to a checkouturl provided by shopify graphql api. Now checkouturl is getting redirected to storefront password page. It was working fine earlier.

 

Derek78756
Tourist
7 0 12

As a workaround, I removed our store password and just made a basic storefront page with a button that directs them to our website.  It would be great if some Shopify developer saw this and documented the issue!

brownca4
Visitor
2 0 0

same! Have you found an answer yet?

Derek78756
Tourist
7 0 12

Unfortunately not, unless the Shopify devs fix the issue it looks like this is how it will work going forward. 😞 

 

 I removed our store password and just made a basic storefront page with a button that directs them to our website in addition to editing the liquid templates to remove any navigation items to other pages.  Technically someone could navigate to an inner page if they knew the exact address.

Ender1
Shopify Partner
2 0 0

Did you get this figured out?
I'm using a development store and the disabled password protection toggle is greyed out for me! 😞
My store is headless using React and Node.js, I use the checkoutUrl from GraphQL, redirect them to the Shopify payment checkout page, then immediately get redirected to the main storefront page. Tried it in an incognito window and got the login page for my Storefront(which I don't use because of my custom app).
I don't really want to start using a paid Shopify plan until I can test some fake orders and would LOVE if I could access the checkout page without it being password protected.

vknez
Shopify Partner
1 0 0

We have the exact same issue. We're headless, with Shopify store on custom domain and password protected.

For logged in users we use Multipass and with it the checkout works correctly:

[Redirects]

1. https://custom-domain/xyz/checkouts/xyz?key=xyz
2. https://custom-domain/checkouts/co/xyz

However, when we don't use Multipass, for anonymous shoppers (I disabled custom domain to have less redirects to report below):

[Redirects]
1. https://shopify-domain/cart/c/xyz
2. https://shopify-domain/checkouts/cn/xyz
3. https://shopify-domain/cart
4. https://shopify-domain/password


rpatel
Shopify Partner
1 0 0

This is also happening to us. Very disappointed to see no one from Shopify answering 

vamshiaruru
Shopify Partner
4 0 1

Still happening. No response yet either. Sad to see.

mahaboobkhan29
Visitor
2 0 1

Still now facing this issue any solution please share 

calebmcquaid
Shopify Partner
1 0 0

Happening to me too. Please help, Shopify!

stony
Visitor
2 0 0

happening to me as well, any work-arounds? 

exnihilodub
Shopify Partner
1 0 0

we're almost 2 years into this issue and a vital thing like this is not working.

I'm sure we'll not get a solution soon but does anyone have any workarounds?

stony
Visitor
2 0 0

Yes, I resolved mine due to Shopify not receiving the correct data such as ProductId. I was using Strapi for a cms and when I refactored the code I missed important product info that Shopify is looking for. Double check you accidentally stripped data from a query that is needed.