It appears that there is a bug for carts which complete via the “Express Checkout” “Shop Pay” & “G Pay” options, Shopify GQL API will still return the cart in that scenario, but it shouldn’t.
As per the documentation:
- Shopify automatically deletes the cart when the customer completes their checkout.
This functionality is used for store fronts to confirm if a cart has completed. As far as I am aware, there is no other way at the time of writing.
I have not tested all the other Express options as they are not enabled on this store but I suspect given 2 of 2 are not working correctly, it is worth checking the others.
To confirm, the standard (non-express) checkout option does return null after checkout completes.
This is causing issues where repeat customers are processing incorrect orders, so I would appreciate some support.
I have reported this in a couple places already:
- https://github.com/Shopify/storefront-api-feedback/discussions/12#discussioncomment-4478358
- https://github.com/Shopify/storefront-api-feedback/discussions/20#discussioncomment-4479709
But given the activity in the discussions on this repo is over 1 year old, I don’t know if the maintainers there genuinely work at Shopify still or have other responsibilities now.
Can anyone help?
Thanks