storylyUpdateCartEvent

abstract fun storylyUpdateCartEvent(storylyView: StorylyView, event: StorylyEvent, cart: STRCart?, change: STRCartItem?, onSuccess: (STRCart?) -> Unit?, onFail: (STRCartEventResult) -> Unit?)

This function will notify you about updates the cart in a StorylyView component

Parameters

storylyView

: StorylyView instance in which the event is received

event

: Storyly event type which is received

cart

: Contains information about the items in the cart

change

: Represents the item being changed in the cart.

onSuccess

: It represents a callback function that will be executed if the "update cart" operation is successful

onFail

: It represents a callback function that will be executed if the "update cart" operation fails