web / useCheckout
Function: useCheckout() ​
useCheckout(
cacheKey
):object
Parameters ​
• cacheKey: string
= ''
Returns ​
object
anyAddressFormIsOpen ​
anyAddressFormIsOpen:
ComputedRef
<boolean
>
backToFormEditing() ​
backToFormEditing: () =>
boolean
Returns ​
boolean
cart ​
cart:
Readonly
<Ref
<Cart
,Cart
>>
cartIsEmpty ​
cartIsEmpty:
ComputedRef
<boolean
>
cartLoading ​
cartLoading:
Ref
<boolean
,boolean
>
clearCartItems ​
clearCartItems:
ClearCartItems
combineShippingAndBilling ​
combineShippingAndBilling:
Ref
<boolean
,boolean
> =true
getCart ​
getCart:
GetCart
hasBillingAddress ​
hasBillingAddress:
ComputedRef
<boolean
>
hasShippingAddress ​
hasShippingAddress:
ComputedRef
<boolean
>
init ​
init:
Ref
<boolean
,boolean
> =false
persistBillingAddress() ​
persistBillingAddress: () =>
Promise
<void
>
Returns ​
Promise
<void
>
persistShippingAddress() ​
persistShippingAddress: () =>
Promise
<void
>
Returns ​
Promise
<void
>
scrollToShippingAddress() ​
scrollToShippingAddress: () =>
void
Returns ​
void
validateTerms() ​
validateTerms: () =>
boolean
Returns ​
boolean