Skip to main content
Returns the URL to Shopify’s hosted checkout page.

Parameters

None

Returns

string | null Returns null if the cart has not been initialized.

Examples

Get checkout URL

Open checkout in new tab

For a simpler redirect to checkout, use .checkout() instead.