reportPurchase

abstract fun reportPurchase(items: List<PurchasedItem>, id: String, opaqueUserId: String? = null, occurredAt: String? = null, deviceType: Device? = null, channel: Channel? = null, page: Page? = null)(source)

Reports a purchase event.

Parameters

items

the list of purchased items

id

The marketplace assigned ID for the order

opaqueUserId

The opaque user ID which allows correlating user activity.

occurredAt

RFC3339 formatted timestamp including UTC offset. Defaults to DateTime() when null

deviceType

Optional device type

channel

Optional channel

page

Optional page context where the purchase occurred