Class: CheckoutCart

CheckoutCart(cart)

Consumes an rcData.cart object (a global variable on the "Thank You" page of ReCharge checkout). Adapts the cart object and line items so they can easily be used by PurchaseListener.

Constructor

new CheckoutCart(cart)

Parameters:
Name Type Description
cart Object the rcData.cart object
Source:

Methods

(static) getEventData() → {Object}

Formats the cart data so it can be used in an event payload NOTE: this does not include 'shipping_tier' or 'payment_type' since these are not part of the `rcData` cart object.
Source:
Returns:
- the event data that must be extracted from the cart
Type
Object