Parameters used to customise the purchase flow when invoking the .purchase method.

interface PurchaseParams {
    customerEmail?: string;
    htmlTarget?: HTMLElement;
    purchaseOption?: null | PurchaseOption;
    rcPackage: Package;
}

Properties

customerEmail?: string

The email of the user. If undefined, RevenueCat will ask the customer for their email.

htmlTarget?: HTMLElement

The HTML element where the billing view should be added. If undefined, a new div will be created at the root of the page and appended to the body.

purchaseOption?: null | PurchaseOption

The option to be used for this purchase. If not specified or null the default one will be used.

rcPackage: Package

The package you want to purchase. Obtained from Purchases.getOfferings.