useCheckoutStore

useCheckoutStore: UseBoundStore<Write<StoreApi<CheckoutState & CheckoutActions>, StorePersist<CheckoutState & CheckoutActions, CheckoutState & CheckoutActions>>>

Source: checkout.state.ts:109

The checkout store — the shopper's in-progress checkout: entered form fields, selected payment/shipping, and processing flags. Read it to prefill or inspect the checkout; it persists across reloads so a shopper doesn't lose progress.

Type

UseBoundStore<Write<StoreApi<CheckoutState & CheckoutActions>, StorePersist<CheckoutState & CheckoutActions, CheckoutState & CheckoutActions>>>

Example

CODE
const { paymentMethod, sameAsShipping } = useCheckoutStore.getState();