didAddToCart

abstract fun didAddToCart(cart: Cart, products: List<Product>, customAttributes: Map<String, String>)

Called when items are added to a cart.

Parameters

cart

The Cart containing details of the cart.

products

A list of Product objects added to the cart.

customAttributes

A map of additional attributes associated with the cart event.