Event System
Page
Checkout View

View/Checkout

Triggered when user reaches the Checkout step, to enter their contact details, as well as their Card Details.

roomstay.events.on('View/Checkout', (event: StepCheckoutViewEvent) => {
  console.log(`User is checking out with ${event.basketRows.length} rows`)
})

basketRows

Basket Rows currently in users basket. Useful for checking if the user has checked out with a sepcific rate, or there is a promo code applied.

Type: BasketRow[]