Class PurchaseFailedEvent
Send when an attempted purchase using real money fails.
Inheritance
PurchaseFailedEvent
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class PurchaseFailedEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable
Fields
_currency
Declaration
protected string _currency
Field Value
_failureReason
Declaration
protected string _failureReason
Field Value
_itemAmount
Declaration
protected int _itemAmount
Field Value
_itemName
Declaration
protected string _itemName
Field Value
_itemType
Declaration
protected string _itemType
Field Value
Declaration
protected string _promouid
Field Value
_revenue
Declaration
Field Value
_transactionId
Declaration
protected string _transactionId
Field Value
CURRENCY_KEY
Declaration
public const string CURRENCY_KEY = "currency"
Field Value
FAILURE_REASON_KEY
Declaration
public const string FAILURE_REASON_KEY = "failureReason"
Field Value
ITEM_AMOUNT_KEY
Declaration
public const string ITEM_AMOUNT_KEY = "itemAmount"
Field Value
ITEM_NAME_KEY
Declaration
public const string ITEM_NAME_KEY = "itemName"
Field Value
ITEM_TYPE_KEY
Declaration
public const string ITEM_TYPE_KEY = "itemType"
Field Value
Declaration
public const string PROMOUID_KEY = "promoUid"
Field Value
REVENUE_KEY
Declaration
public const string REVENUE_KEY = "revenue"
Field Value
TRANSACTION_ID_KEY
Declaration
public const string TRANSACTION_ID_KEY = "transactionId"
Field Value
Properties
EventName
Declaration
public override string EventName { get; }
Property Value
Overrides
Methods
EventContent()
Declaration
protected override Dictionary<string, object> EventContent()
Returns
Overrides
Initialize(String, String, Int32, Single, String, String, String, String)
Declaration
public virtual void Initialize(string itemType, string itemName, int itemAmount, float revenue, string currency, string transactionId, string promouid, string failureReason)
Parameters
Type |
Name |
Description |
String |
itemType |
The type of item being purchased. gems, promo, event_promo
|
String |
itemName |
The name of the item being purchased. com.canary.gems.small, pack-1, event_promo_facebook
|
Int32 |
itemAmount |
The number of the item included in the purchase.
|
Single |
revenue |
The price of the item in the users local currency.
|
String |
currency |
The three letter ISO currency code for the currency used to make the purchase. USD, CAD, MXN
|
String |
transactionId |
The transaction ID generated by the platform.
|
String |
promouid |
The unique id associated with every promo. (Not the product sku purchased)
|
String |
failureReason |
The reason the transaction failed.
|
Implements
IInjectable