IAnalyticsProvider::RecordCurrencyPurchase

Record a purchase of in-game currency using real-world money.

Windows
MacOS
Linux

References

Module

Analytics

Header

/Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h

Include

#include "Interfaces/IAnalyticsProvider.h"

Syntax

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.

that not all providers support currency events. In this case this method is equivalent to sending a regular event with name "Currency Purchase".

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss