Events Data Model

Event

Description

onExpressCheckout()

Express checkout on product page.
Get the product details on the current product page.
Returns the current product details and order amount details

onCheckout()

Express checkout on cart or mini cart.
Get the product details on the current cart.
Returns the current product details and order amount details

onCustomerUpdate(data)

Get the customer information.
Returns nothing.

onShippingAddressChange(data)

Get shipping options with a given address and checkoutId
Returns a list of shipping options with checkoutId

onShippingMethodChange(data)

Get order amount details with selected shipping method

onCouponCodeAdd(data)

Get updated order amount, checkout items, shipping methods and applied coupons with adding a new coupon

onCouponCodeRemove(data)

Get updated order amount, checkout items, shipping methods and applied coupons with removing a coupon

onOrderCreate(data)

Request that the order get created in the magic server

onOrderComplete(data)

This is used to capture the order on the magic server backend after sucessfully taking payment