useCartCheckoutUrl

The useCartCheckoutUrl hook returns a string of the checkout URL for the cart. It must be a descendent of a CartProvider component.

Example code

Return value

A string of the checkout URL for the cart.