MixCheckout
All functionality for the checkout Data: debug: false
cartLoading: false
checkoutLoading: false
checkout: {}
desiredDeliveryDate: null
message: ''
pickupPoint: ''
, externalShippingId: ''
, udcValid: false
udcDataSet: false
paymentId: vm.$config.defaultPaymentId
updateDelay: 150updateTimeout:
nullactiveElement:
nullframeLoading:
falseforceExternalCheckoutReset:
falsemarkets:
[]`
Methods
Method | Description | Parameters |
---|
emitGTMEvent | GTM event emitter | - |
createOrUpdateCheckout | Handling the api call for creating an updating the checkout session | - |
updateCart | Updating the cart if the cart is different from the existing cart | cart (Object) |
updateCheckoutData | Updating the checkout data received from Carismar Checkout | data (Object) |
placeOrder | Placing the order and redirecting to confirm page if completed | - |
initUDC | Initialize UDC | zip (String) |
setUDCdata | UDC callback handler | data (Object) |
paymentSelectionHandler | Handling the payment selection | payment id (Number) |
shippingSelectionHandler | Handling the shipping selection | shipping id (Number) |
getMarkets | Get the markets for the storefront from the channelId taken from nuxt.config on the storefront under '@nuxtjs/i18n' | channel id (string) |
Computed
Computed | Type | Description | From Store |
---|
acceptedConsents | Array | A list of accepted consents | No |
checkoutInput | Object | The checkout input object prepared for the API | No |
orderMessage | String | This is the message that gets sent to the api. Override this if more than just the user inputted message should go in there | No |
currentZip | String | The current billing zip | No |
hasPaymentOptions | Boolean | Is there more than one payment option? | No |
selectedPaymentOption | Object | The selected payment option | No |
paymentType | String | The current payment type | No |
MixIns
MixIn |
---|
MixPromiseQueue |
MixApolloRefetch |