Interface IapticProduct

Product metadata from the store

interface IapticProduct {
    countryCode?: string;
    description?: string;
    entitlements?: string[];
    id: string;
    offers: IapticOffer[];
    platform: IapticPurchasePlatform;
    title?: string;
    tokenType?: string;
    tokenValue?: number;
    type: IapticProductType;
}

Properties

countryCode?: string

Country code of the product

description?: string

Description of the product provided by the store

entitlements?: string[]

Entitlements this product will give to the user, can be used for subscription and non-consumable products.

Use iapticRN.checkEntitlement("my-entitlement") to check if the user owns any product that provides this entitlement.

id: string

Product identifier on the store (unique per platform)

offers: IapticOffer[]

List of offers available for this product

Platform of the product

title?: string

Title of the product provided by the store

tokenType?: string

Type of token this product will give to the user for consumable products.

For example: "coin", "gem", "silver", etc.

tokenValue?: number

Amount of tokens this product will give to the user for consumable products.

{ id: 'coins_100', type: 'consumable', tokenType: 'coin', tokenValue: 100 },

Type of product (subscription, consumable, etc.)