Interface IapticProductDefinition

Interface defining an in-app purchase product

interface IapticProductDefinition {
    entitlements?: string[];
    id: string;
    tokenType?: string;
    tokenValue?: number;
    type: IapticProductType;
}

Properties

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

Unique identifier of the product

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 the product (subscription, consumable, or non-consumable)