The VirtualCurrency object represents information about a virtual currency in the app. Use this object to access information about a virtual currency, such as its current balance.

interface VirtualCurrency {
    balance: number;
    code: string;
    name: string;
    serverDescription: null | string;
}

Properties

balance: number

The virtual currency's balance.

code: string

The virtual currency's code.

name: string

The virtual currency's name.

serverDescription: null | string

The virtual currency's description defined in the RevenueCat dashboard.