Skip to main content

Events

Overview

Events provide the ability to react based on certain actions that occur during the lifecycle of a basket interaction. This could be used for analytics, logging, or other custom actions.

Available Events

basketCreated

declo.config.ts
.events({
basketCreated: (event) => {
// ...
}
})

basketDataChanged

declo.config.ts
.events({
basketDataChanged: (event) => {
// ...
}
})

basketObjectsChanged

declo.config.ts
.events({
basketObjectsChanged: (event) => {
// ...
}
})

basketObjectChanged

declo.config.ts
.events({
basketObjectChanged: (event) => {
// ...
}
})

orderInitialized

declo.config.ts
.events({
orderInitialized: (event) => {
// ...
}
})

orderCompleted

declo.config.ts
.events({
orderCompleted: (event) => {
// ...
}
})