Navigation
API > API/Runtime > API/Runtime/Analytics > API/Runtime/Analytics/Interfaces > API/Runtime/Analytics/Interfaces/IAnalyticsProvider > API/Runtime/Analytics/Interfaces/IAnalyticsProvider/RecordCurrencyPurchase
References
| Module | Analytics |
| Header | /Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h |
| Include | #include "Interfaces/IAnalyticsProvider.h" |
virtual void RecordCurrencyPurchase
(
const FString & GameCurrencyType,
int GameCurrencyAmount,
const FString & RealCurrencyType,
float RealMoneyCost,
const FString & PaymentProvider
)
Remarks
Record a purchase of in-game currency using real-world money.
Note that not all providers support currency events. In this case this method is equivalent to sending a regular event with name "Currency Purchase".
Parameters
| Name | Description |
|---|---|
| GameCurrencyType | type of in game currency purchased, should be registered with the provider first. |
| GameCurrencyAmount | amount of in game currency purchased. |
| RealCurrencyType | real-world currency type (like a 3-character ISO 4217 currency code, but provider dependent). |
| RealMoneyCost | cost of the currency in real world money, expressed in RealCurrencyType units. |
| PaymentProvider | Provider who brokered the transaction. Generally arbitrary, but examples are PayPal, Facebook Credits, App Store, etc. |