Skip to content

PurchaseEventCreator

Arjun Komath edited this page Sep 26, 2017 · 1 revision

EngageEvent creator for Purchase events

Method Summary

Method Description
onProductCheckout Creates EngageEvent representing product checkout
onProductCheckoutFailed Creates EngageEvent representing product checkout failure
onProductCheckoutSuccess Creates EngageEvent representing product checkout success
onProductRenew Creates EngageEvent representing product renewal
onProductSelected Creates EngageEvent representing product selection
onProductUpgrade Creates EngageEvent representing product upgrade
putBankName Set the name of bank used for the purchase
putCardType Set the type of card used for the purchase
putCurrency Set the currency of price of the product
putOrderId Set the order id of the purchase
putOriginalOrderId Set the original order id of the purchase
putOriginalTransactionId Set the original transaction id of payment
putPaymentMode Set the payment mode of the purchase
putProductPrice Set the price of the product
putProductTitle Set the title of the product
putProductType Set the type of the product
putPromoCode Set the promo-code used in the product
putRemainingDays Set the product validity remaining days
putStoreName Set the store name used for payment
putTransactionId Set the transaction id of payment
putValidityDays Set the product validity days

Example

onProductSelected

ENGAGE
    .onProductSelected(PRODUCT_ID)
    .putProductTitle(OPTIONAL_TITLE_OF_THE_CONTENT)
    .putProductType(OPTIONAL_TYPE_OF_THE_CONTENT)
    .track();

Clone this wiki locally