EconomyEvent
The player bought, sold or exchanged something in the game
transaction
Transaction
Required
transaction
Transaction object
productID
string
Optional
product_id
The Store SKU of the purchase unit
transactionID
string
Optional
transaction_id
The receipt ID provided by the Store
purchaseLocation
string
Optional
placement
The location in the app where the purchase was made
additionalData
Dictionary<string, object>
Optional
additional_data
Any additional information
receiptStatus
ReceiptStatus
Optional
validated_receipt
A receipt status object
The overrides below are for convenience and internally call the function above. So the backend names are the ones from the first table.
itemID
string
Required
item_id
Internal ID of an item within the game
itemType
string
Required
item_type
The type of item that is being interacted with, could be a spell, weapon, etc.
amount
string
Required
amount
The amount the player BET / RAISED if applicable.
currencyType
string
Optional
currency_type
The type of currency used to buy the purchase. The default is USD
placement
string
Optional
placement
The location in the app where the purchase was made
additionalData
string
Optional
additional_data
Any additional information
purchaseName
string
Required
purchase_name
Name of the purchase/pack the user bought
realCurrencyAmount
string
Required
real_currency_amount
The localized price of the purchase
realCurrencyType
string
Required
real_currency_type
The type of real currency (USD, Euros, etc). Lion Analytics will automatically convert the localized price.
virtualCurrencyAmount
string
Required
virtual_currency_amount
The virtual Currency amount in game
virtualCurrencyName
string
Required
virtual_currency_name
The virtual currency name used in the game
virtualCurrencyType
string
Required
virtual_currency_type
The type of virtual currency used in the game.
productID
string
Optional
product_id
The Store SKU of the purchase unit
transactionID
string
Optional
transaction_id
The receipt ID provided by the Store
placement
string
Optional
placement
The location in the app where the purchase was made
receiptStatus
string
Optional
receipt_status
A receipt status object
additionalData
string
Optional
additional_data
Any additional information
Code examples:
Alternative method using InAppPurchase:
Alternative method using Transaction object:
Last updated