Checkout Selectors

getCheckoutUrl

Retrieves the current checkout URL from the store.

Usage

import { getCheckoutUrl } from '@shopgate/engage/checkout';

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { getCheckoutUrl } from '@shopgate/pwa-common-commerce/checkout'

Parameters

  • state (Object) required: The application state.

Returns

(string|null) The checkout URL or null if no URL is found.