interface Options {
    log?: ((msg) => void);
    onPriceChangeConfirmationResult?: ((result) => void);
    onPurchaseConsumed?: ((purchase) => void);
    onPurchasesUpdated?: ((purchases) => void);
    onSetPurchases?: ((purchases) => void);
    showLog?: boolean;
}

Properties

log?: ((msg) => void)

Type declaration

    • (msg): void
    • Parameters

      • msg: string

      Returns void

onPriceChangeConfirmationResult?: ((result) => void)

Type declaration

    • (result): void
    • Parameters

      • result: "OK" | "UserCanceled" | "UnknownProduct"

      Returns void

onPurchaseConsumed?: ((purchase) => void)

Type declaration

    • (purchase): void
    • Parameters

      Returns void

onPurchasesUpdated?: ((purchases) => void)

Type declaration

    • (purchases): void
    • Parameters

      Returns void

onSetPurchases?: ((purchases) => void)

Type declaration

    • (purchases): void
    • Parameters

      Returns void

showLog?: boolean