What's your biggest current challenge? Have your say in Community Polls along the right column.

The CheckoutUrl is wrong when using Hydrogen-React package

The CheckoutUrl is wrong when using Hydrogen-React package

fredericbrass
Tourist
3 0 0

Hi,

 

I'm using the react-hydrogen package, I'm managing to update my cart with the <AddToCartButton> perfectly fine, and I can see lineItems being added to my cart correctly. However it seems the checkoutUrl is wrong, redirecting is not working as expected when using the <CartCheckoutButton>

 

The checkoutUrl is: http://storedomain.com/cart/c/(token) Looking at other examples of using hydrogen-react I'd expect my checkout url to be something similar to: https://storedomain.myshopify.com/checkouts/cn/(token) Has anyone experienced this before

 

For reference, I am moving away from using the js-buy-sdk package as it does not support subscriptions (checkout api versus storefront api) - however in my live app using this package, the checkout url is https://store-domain.myshopify.com/checkouts/cn/(token)

 

For reference I am giving the storeDomain as 'storedomain.myshopify.com'

Replies 0 (0)