### Configuring RevenueCat SDK with Configuration - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.9.1/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible and structured way to initialize the SDK. It allows passing various configuration parameters, including the API key and app user ID, within a single object. This is the recommended approach for SDK initialization. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Getting Introductory Price Period Number of Units (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.4.1/interfaces/PurchasesIntroPrice.html This property specifies the numerical quantity of units for the billing period of the introductory discount. For example, if the period is 'P3M', this property would be 3. ```TypeScript periodNumberOfUnits: number ``` -------------------------------- ### Getting Formatted Price String (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.6/interfaces/Price.html The `formatted` property provides the price of the item as a string, including its currency sign, for display purposes. For example, it might return '$3.00'. This property is of type `string`. ```TypeScript formatted: string; ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS Constant (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.0.0-rc.1/enums/INTRO_ELIGIBILITY_STATUS.html This constant indicates that the product itself does not have any free trial or introductory pricing available. Therefore, eligibility is not applicable as there is no offer to begin with. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - RevenueCat Cordova Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.2/classes/default.html This method sets up the RevenueCat SDK by accepting a PurchasesConfiguration object, which provides a more flexible and robust way to initialize the SDK compared to the deprecated configure method. It encapsulates all necessary setup parameters within a single object. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Getting Formatted Price String - Price Interface (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.6.0/interfaces/Price.html This property provides the formatted price of the item, including its currency sign, for example "$3.00". It's intended for display purposes, offering a user-friendly representation of the price. ```TypeScript formatted: string ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.3.0/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible way to initialize the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.0/classes/default.html Associates the install media source with the user as a subscriber attribute. This helps in understanding the origin of user installs. An empty string or null will remove the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.1/classes/default.html Sets the subscriber attribute for the install keyword. This attribute is associated with the user's install. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Initiating Product Purchase with RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.4/classes/default.html This static method initiates a product purchase. It requires a `productIdentifier` and provides callbacks for success (returning `customerInfo` and `productIdentifier`) and error (returning `error` and `userCancelled` status). Optional parameters include `upgradeInfo` for Android subscription upgrades and `type` for specifying in-app or subscription purchases. ```TypeScript purchaseProduct(productIdentifier: string, callback: (__namedParameters: { customerInfo: CustomerInfo; productIdentifier: string }) => void, errorCallback: (__namedParameters: { error: PurchasesError; userCancelled: boolean }) => void, upgradeInfo?: null | UpgradeInfo, type?: PURCHASE_TYPE): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.1/classes/default.html Sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering a more flexible and modern approach to initialization compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.1/classes/default.html Sets the subscriber attribute for the install media source. This attribute is associated with the user's install. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.6/classes/default.html Initializes the RevenueCat SDK using a `PurchasesConfiguration` object. This method offers a more flexible and modern approach to setting up the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source Subscriber Attribute in RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.2/classes/default.html Associates the install media source with the user as a subscriber attribute. This helps in understanding the origin of user installs. Providing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Setting Install Media Source for RevenueCat (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.12.1/classes/default.html Associates the install media source with the user as a subscriber attribute. This attribute helps track the origin of the user's installation. Providing `null` or an empty string will delete this attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.1/classes/default.html This method sets up the RevenueCat Purchases SDK using a `PurchasesConfiguration` object, offering a more flexible and recommended way to initialize the SDK compared to the deprecated `configure` method. The `__namedParameters` object encapsulates all necessary configuration details. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.1/classes/default.html This method sets a subscriber attribute associated with the install keyword for the user. The `keyword` parameter is a string representing the install keyword; passing an empty string or `null` will delete the attribute. ```TypeScript Purchases.setKeyword("your_install_keyword"); Purchases.setKeyword(null); ``` -------------------------------- ### Property: introPhase (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.5/interfaces/SubscriptionOption.html Represents the introductory trial `PricingPhase` of the subscription. It identifies the first pricing phase with `amountMicros` greater than 0. A `SubscriptionOption` can have both a free trial and an introductory phase. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Accessing Introductory Price for PurchasesStoreProduct (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.4/interfaces/PurchasesStoreProduct.html Retrieves information about any introductory pricing offers for the product. ```TypeScript introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.0.0/classes/default.html Associates an install keyword with the user's subscriber attributes. This can be used for tracking specific installation sources or campaigns. Providing an empty string or null will remove this attribute from the subscriber profile. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.6.1/classes/default.html Sets the subscriber attribute associated with the install media source for the user. This helps in understanding the origin of the user's installation. An empty string or null value will delete the subscriber attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.12.3/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering more flexibility than the deprecated `configure` method. It's the recommended way to initialize the SDK. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.12.2/classes/default.html Associates the install media source with the user's subscriber attributes. Passing an empty string or null for the `mediaSource` parameter will remove this attribute. This helps in understanding the origin of user installs. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.1.0/classes/default.html This method initializes the RevenueCat SDK using a `PurchasesConfiguration` object, providing a flexible way to set up the SDK with an API key and other advanced options. It is the recommended approach for configuring the SDK. The function takes a single configuration object parameter and returns void. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS in TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.0/enums/INTRO_ELIGIBILITY_STATUS.html This status indicates that the product itself does not have any free trial or introductory pricing associated with it. Therefore, eligibility is not applicable as there's no offer to begin with. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.2/classes/default.html This method sets the subscriber attribute for the install media source associated with the user. Providing an empty string or null to the `mediaSource` parameter will delete the subscriber attribute. This helps in attributing user installs to specific marketing channels. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Introductory Price Property | PurchasesStoreProduct | TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.4/interfaces/PurchasesStoreProduct.html Represents the introductory price details for the product. ```TypeScript introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. Empty string or `null` will delete the attribute. ```TypeScript Purchases.setKeyword("some_keyword"); ``` -------------------------------- ### Configuring RevenueCat Cordova Plugin with Configuration Object Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.3/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering a more flexible and recommended approach compared to the deprecated `configure` method. It initializes the SDK with the provided configuration details. ```TypeScript const config = new Purchases.PurchasesConfiguration("YOUR_API_KEY") .withAppUserID("optional_app_user_id") .withObserverMode(false) .withUserDefaultsSuiteName("com.example.app.group"); Purchases.configureWith(config); ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.3/classes/default.html Sets the subscriber attribute for the install keyword. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.4.0/classes/default.html Sets the subscriber attribute for the install keyword. Providing an empty string or null will remove this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Initiating a Product Purchase (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.0.0-alpha.1/classes/default.html This method initiates a purchase for a given product identifier. It requires success and error callbacks to handle the purchase outcome, and optionally supports upgrade information for Android and specifying the purchase type (in-app or subscription). ```TypeScript purchaseProduct(productIdentifier: string, callback: (__namedParameters: { customerInfo: CustomerInfo; productIdentifier: string }) => void, errorCallback: (__namedParameters: { error: PurchasesError; userCancelled: boolean }) => void, upgradeInfo?: null | UpgradeInfo, type?: PURCHASE_TYPE): void ``` -------------------------------- ### Setting Install Keyword with RevenueCat Purchases (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.5.0/classes/default.html Sets the install keyword as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### No Intro Offer Exists Status - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.9.0/enums/INTRO_ELIGIBILITY_STATUS.html Represents the status where the product itself does not have any free trial or introductory pricing available. This means there is no special offer to be eligible or ineligible for. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS = 3 ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.2/classes/default.html Sets the subscriber attribute for the install keyword. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.2/enums/INTRO_ELIGIBILITY_STATUS.html Signifies that the product does not have any free trial or introductory pricing available. Users cannot receive an introductory offer because none is defined for this product. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Accessing Introductory Phase - SubscriptionOption (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.1.0/interfaces/SubscriptionOption.html Obtains the introductory trial `PricingPhase` of the subscription. This property identifies the first pricing phase where `amountMicros` is greater than zero, indicating a discounted introductory period. A subscription option can have both a free trial and an introductory phase. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.0/classes/default.html Sets the subscriber attribute for the install keyword. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Configure RevenueCat SDK with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.3/classes/default.html This method sets up the RevenueCat SDK using a PurchasesConfiguration object, offering more flexible configuration options compared to the deprecated configure method. It is the recommended way to initialize the SDK. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.0/classes/default.html Associates the install media source with the user as a subscriber attribute. Empty string or `null` will delete the attribute. ```TypeScript Purchases.setMediaSource("some_media_source"); ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.8/classes/default.html Sets the install keyword as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Configuring RevenueCat Cordova Plugin with Configuration Object Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.11.1/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering more flexibility than the deprecated `configure` method. It initializes the SDK with the provided configuration parameters. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Checking Trial/Introductory Price Eligibility (iOS) - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.0.0/classes/default.html This iOS-only method computes whether a user is eligible for an introductory pricing period or trial for a given product. It helps determine whether to display the normal or introductory price. If eligibility cannot be definitively computed, it returns `INTRO_ELIGIBILITY_STATUS_UNKNOWN`, in which case displaying the non-introductory price is recommended. Subscription groups are automatically collected for eligibility determination. ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: {}) => void): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.5/classes/default.html Sets an install keyword as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS Constant in TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.12.3/enums/INTRO_ELIGIBILITY_STATUS.html This constant indicates that there is no free trial or introductory pricing offer available for the particular product. This means the product does not have an introductory offer configured. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. Passing an empty string or null will delete this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Accessing Free Trial Phase in SubscriptionOption (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.4/interfaces/SubscriptionOption.html Retrieves the free trial `PricingPhase` of the subscription. It identifies the first pricing phase of the `SubscriptionOption` where `amountMicros` is 0. A `SubscriptionOption` can have both a free trial phase and an introductory phase simultaneously. ```TypeScript freePhase: null | PricingPhase ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.6.0/classes/default.html Sets the subscriber attribute for the install keyword for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.7.1/classes/default.html Associates an install keyword with the user as a subscriber attribute. Providing an empty string or null will remove this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Making a Product Purchase - Cordova/TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.0/classes/default.html This static method initiates a product purchase. It requires a `productIdentifier` and provides `callback` for success (returning `customerInfo` and `productIdentifier`) and `errorCallback` for failure or user cancellation (returning `error` and `userCancelled` status). Optionally, `upgradeInfo` can be provided for Android subscription upgrades, and `type` specifies the purchase type (inapp or subs, default is subs). ```TypeScript purchaseProduct(productIdentifier: string, callback: (__namedParameters: { customerInfo: CustomerInfo; productIdentifier: string }) => void, errorCallback: (__namedParameters: { error: PurchasesError; userCancelled: boolean }) => void, upgradeInfo?: null | UpgradeInfo, type?: PURCHASE_TYPE): void ``` -------------------------------- ### Configuring RevenueCat SDK with PurchasesConfiguration Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.10.0/classes/default.html Sets up the RevenueCat SDK using a `PurchasesConfiguration` object. This method is the recommended way to configure the SDK, offering more flexibility compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.5.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. Passing an empty string or null will remove this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Accessing Introductory Trial Phase in SubscriptionOption (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.4/interfaces/SubscriptionOption.html Retrieves the introductory trial `PricingPhase` of the subscription. It identifies the first pricing phase of the `SubscriptionOption` where `amountMicros` is greater than 0. A `SubscriptionOption` can include both a free trial phase and an introductory phase. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.4.1/classes/default.html Sets an install keyword as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.2/classes/default.html This method sets the subscriber attribute for the install keyword. Passing an empty string or null will delete the attribute. ```TypeScript import Purchases from 'cordova-plugin-purchases'; Purchases.setKeyword("your_keyword"); Purchases.setKeyword(null); ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object - RevenueCat Cordova - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.6.0/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible and structured way to initialize the SDK. It allows passing various configuration options, including the API key and app user ID, within a single object. This is the recommended approach for SDK configuration. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.0.0/classes/default.html Associates an install keyword with the current user. Providing an empty string or null will delete this subscriber attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS in TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.0.0-rc.7/enums/INTRO_ELIGIBILITY_STATUS.html Represents the status where the product itself does not have any free trial or introductory pricing available. This means there is no special offer to be eligible or ineligible for, as the product simply doesn't provide one. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.9.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. Providing an empty string or null will delete this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.0.0-alpha.1/classes/default.html This method sets up the RevenueCat Purchases SDK using a PurchasesConfiguration object, providing a more flexible way to initialize the SDK with your API key and other settings. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Checking Trial/Introductory Price Eligibility (iOS) - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.2/classes/default.html This method, available on iOS only, computes whether a user is eligible for introductory pricing or a trial period for specified products. It takes an array of `productIdentifiers` and a `callback` that receives a map of `IntroEligibility` per product ID. Android always returns `INTRO_ELIGIBILITY_STATUS_UNKNOWN`. ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: {}) => void): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.3/classes/default.html Sets the subscriber attribute for the install media source. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.0/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible way to initialize the SDK compared to the deprecated `configure` method. It allows passing various configuration options in a structured manner. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.3/classes/default.html Sets the install keyword as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.2.1/classes/default.html Sets the subscriber attribute for the install keyword. The `keyword` parameter accepts a string or null; passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS in TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.6/enums/INTRO_ELIGIBILITY_STATUS.html Indicates that the product itself does not have any free trial or introductory pricing available. This status means there is no special offer to be eligible or ineligible for. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Accessing Introductory Trial Phase in SubscriptionOption (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.5.0/interfaces/SubscriptionOption.html Gets the introductory trial `PricingPhase` of the subscription. It identifies the first pricing phase where `amountMicros` is greater than zero. A `SubscriptionOption` can have both a free trial and an introductory phase. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.2.0/classes/default.html Associates a subscriber attribute with the install keyword for the user. Providing an empty string or null will delete this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.3.0/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering more flexibility than the deprecated `configure` method. It is the recommended way to initialize the SDK for advanced configurations. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. This can be used to track how users were acquired. An empty string or null will remove the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.4.0/classes/default.html Sets the subscriber attribute for the install media source. An empty string or null value will delete this attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS in TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.2.1/enums/INTRO_ELIGIBILITY_STATUS.html Signifies that there is no free trial or introductory pricing available for the specific product. This status means the product itself does not offer any special introductory promotions. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### PurchasesStoreProduct introPrice Property (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.4.0/interfaces/PurchasesStoreProduct.html The `introPrice` property provides details about the introductory price for the product. It can be `null` if no introductory price is available. ```TypeScript introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Media Source with RevenueCat Purchases (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.5.0/classes/default.html Sets the install media source as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.2/classes/default.html Sets the subscriber attribute for the install media source. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.1/classes/default.html This is the recommended method for setting up the RevenueCat SDK, accepting a PurchasesConfiguration object. It provides a flexible way to pass all necessary configuration parameters, including API key, app user ID, observer mode, and user defaults suite name. This method streamlines the SDK initialization process. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS in TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.8.0/enums/INTRO_ELIGIBILITY_STATUS.html This enumeration member indicates that the product itself does not have any free trial or introductory pricing configured. Therefore, eligibility is not applicable as there is no offer to begin with. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS = 3 ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.0/classes/default.html Sets the subscriber attribute for the install media source. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Accessing Introductory Phase in SubscriptionOption (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.3/interfaces/SubscriptionOption.html Retrieves the introductory trial `PricingPhase` of the subscription. This phase is characterized as the first pricing phase where the `amountMicros` is greater than zero but is still considered an introductory offer. A subscription option can include both a free trial and an introductory phase. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.14.0/classes/default.html Sets an install keyword as a subscriber attribute for the user. Passing an empty string or null will effectively delete this attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Keyword for RevenueCat (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.12.1/classes/default.html Associates an install keyword with the user. This is a subscriber attribute used by RevenueCat. Passing `null` or an empty string will delete the subscriber attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Defining INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS Constant - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.6.1/enums/INTRO_ELIGIBILITY_STATUS.html Defines the constant value for `INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS`, signifying that the product itself does not have any free trial or introductory pricing available. In this case, eligibility is not applicable as no such offer exists. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Setting Install Keyword Subscriber Attribute in RevenueCat Cordova Plugin - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.3/classes/default.html Associates an install keyword with the user as a subscriber attribute. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.4/classes/default.html This method sets up the RevenueCat Purchases SDK using a `PurchasesConfiguration` object, offering a more flexible way to configure the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Subscriber Install Keyword - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.1/classes/default.html Sets the subscriber attribute for the install keyword. Passing an empty string or `null` will delete the attribute. It accepts a `keyword` of type `null | string`. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Checking Trial/Introductory Price Eligibility - RevenueCat Cordova - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.0/classes/default.html This iOS-only method computes user eligibility for introductory pricing or trials for given product identifiers. It helps determine whether to display normal or introductory prices. Subscription groups are automatically collected. If eligibility is unknown, display non-intro pricing. Android always returns UNKNOWN. Parameters: `productIdentifiers` (array of product IDs), `callback` (receives a map of `IntroEligibility` per product ID). ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: {}) => void): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.8/classes/default.html Sets the install media source as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Checking Trial/Introductory Price Eligibility (iOS, TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.7/classes/default.html This iOS-only static method computes user eligibility for introductory pricing periods of a given product, including trials. It helps determine whether to display the normal product price or the introductory price. Note that Android always returns INTRO_ELIGIBILITY_STATUS_UNKNOWN, and for iOS, if eligibility can't be definitively computed (e.g., missing group info), INTRO_ELIGIBILITY_STATUS_UNKNOWN is returned, suggesting displaying the non-intro pricing. ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: { [productId: string]: IntroEligibility; }) => void): void ``` -------------------------------- ### Checking Trial or Introductory Price Eligibility (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.1.0/classes/default.html This iOS-only method determines if a user is eligible for introductory pricing or a trial period for specified products. It helps decide whether to display the normal or introductory price, with subscription groups automatically collected for eligibility. If eligibility cannot be definitively computed, it returns `INTRO_ELIGIBILITY_STATUS_UNKNOWN`, in which case displaying the non-introductory price is recommended. ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: {}) => void): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.5/classes/default.html Sets the install media source as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Accessing Introductory Trial Pricing Phase for SubscriptionOption (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.3/interfaces/SubscriptionOption.html This property provides the intro trial `PricingPhase` of the subscription. It identifies the first pricing phase of the `SubscriptionOption` where `amountMicros` is greater than 0. There can be a free trial phase and an introductory phase in the same `SubscriptionOption`. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.0/classes/default.html Assigns the install media source as a subscriber attribute for the user. The attribute can be cleared by providing an empty string or null. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.12.1/classes/default.html This method sets up the RevenueCat Purchases SDK using a `PurchasesConfiguration` object, providing a more flexible way to configure the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.6.0/classes/default.html Sets the subscriber attribute for the install media source for the user. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Initiating a Product Purchase (TypeScript/JavaScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.2/classes/default.html This method facilitates making a purchase for a specified product identifier using the RevenueCat Cordova plugin. It includes callbacks for both successful purchases, providing customer information, and error scenarios, indicating if the user cancelled. Optional parameters allow for specifying upgrade information (Android only) and the product type. ```TypeScript purchaseProduct(productIdentifier: string, callback: (__namedParameters: { customerInfo: CustomerInfo; productIdentifier: string }) => void, errorCallback: (__namedParameters: { error: PurchasesError; userCancelled: boolean }) => void, upgradeInfo?: null | UpgradeInfo, type?: PURCHASE_TYPE): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.9.1 /classes/default.html Sets the subscriber attribute associated with the install keyword for the user. Passing an empty string or null will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Property: introPrice in PurchasesStoreProduct (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.6.0/interfaces/PurchasesStoreProduct.html Represents any introductory pricing information for the product, such as a free trial or a reduced price for an initial period. It can be null if no introductory price is offered. ```TypeScript readonly introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.7.1/classes/default.html Associates the install media source with the user as a subscriber attribute. Providing an empty string or null will remove this attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.5.0/classes/default.html Assigns the install media source as a subscriber attribute for the user. The attribute can be cleared by providing an empty string or null. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Property: introPrice (PurchasesIntroPrice | null) in PurchasesStoreProduct (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.7.0/interfaces/PurchasesStoreProduct.html This property provides details about any introductory pricing available for the product. ```TypeScript introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.4.1/classes/default.html Sets the install media source as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.4.3/classes/default.html This method sets up the RevenueCat Purchases SDK using a `PurchasesConfiguration` object, providing a more flexible way to configure the SDK with your API key and other settings. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.2/classes/default.html This method sets the subscriber attribute for the install media source. Passing an empty string or null will delete the attribute. ```TypeScript import Purchases from 'cordova-plugin-purchases'; Purchases.setMediaSource("your_media_source"); Purchases.setMediaSource(null); ``` -------------------------------- ### Configuring RevenueCat Cordova Plugin with Configuration Object Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.8/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible way to initialize the SDK compared to the deprecated `configure` method. It encapsulates all necessary configuration parameters within a single object. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.5.0/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering a more flexible and recommended way to configure the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.0.0-rc.1/classes/default.html Sets the subscriber attribute associated with the install keyword for the user. Passing an empty string or null will delete the subscriber attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.0.0/classes/default.html Associates the install media source with the current user. An empty string or null value will remove this subscriber attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.2.0/classes/default.html This method sets up the Purchases SDK using a `PurchasesConfiguration` object, offering a more flexible way to initialize the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Property: introPrice in PurchasesStoreProduct (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.0.0-rc.8/interfaces/PurchasesStoreProduct.html Represents the introductory price details for the product. This property is read-only. ```TypeScript introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.9.0/classes/default.html Assigns the install media source as a subscriber attribute for the user. Setting it to an empty string or null will remove the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Accessing SubscriptionOption Introductory Phase (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.8/interfaces/SubscriptionOption.html Retrieves the introductory trial `PricingPhase` of the subscription. This property identifies the first pricing phase where `amountMicros` is greater than 0, but still considered an introductory offer. A `SubscriptionOption` can have both a free trial and an introductory phase. ```TypeScript introPhase: null | PricingPhase ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.3/classes/default.html Sets the install media source as a subscriber attribute for the user. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.2.1/classes/default.html Sets the subscriber attribute for the install media source. The `mediaSource` parameter accepts a string or null; passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat SDK with PurchasesConfiguration - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.4/classes/default.html Sets up the RevenueCat SDK using a `PurchasesConfiguration` object, offering more flexible configuration options than the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Making a Purchase with RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.0.0/classes/default.html This static method initiates a product purchase. It requires a `productIdentifier` and provides `callback` for success (with `customerInfo` and `productIdentifier`) and `errorCallback` for failure (with `error` and `userCancelled` status). Optional `upgradeInfo` (Android only) and `type` (inapp/subs) can be provided. It returns void. ```TypeScript purchaseProduct(productIdentifier: string, callback: (__namedParameters: { customerInfo: CustomerInfo; productIdentifier: string }) => void, errorCallback: (__namedParameters: { error: PurchasesError; userCancelled: boolean }) => void, upgradeInfo?: null | UpgradeInfo, type?: PURCHASE_TYPE): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.2.0/classes/default.html Associates a subscriber attribute with the install media source for the user. Providing an empty string or null will delete this attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.7.0/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible way to configure the SDK compared to the deprecated `configure` method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword Subscriber Attribute in RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.2/classes/default.html Associates an install keyword with the user as a subscriber attribute. This can be used to track how users were acquired. An empty string or null will remove the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Static INTRO_ELIGIBILITY_STATUS Property in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.0.0/classes/default.html This static property represents an enumeration of possible states for a user's eligibility to receive introductory pricing for subscriptions. It helps determine if a user qualifies for a free trial or discounted introductory period. ```TypeScript INTRO_ELIGIBILITY_STATUS: typeof INTRO_ELIGIBILITY_STATUS = ... ``` -------------------------------- ### Setting Subscriber Install Keyword - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.4/classes/default.html Associates an install keyword with the user's subscriber attributes. This can be used for tracking acquisition sources. An empty string or `null` will delete the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.1.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. Providing an empty string or null will remove the attribute. This method returns void. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### No Intro Offer Exists Status - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.1/enums/INTRO_ELIGIBILITY_STATUS.html Signifies that there is no free trial or introductory pricing available for the specific product. This status means the product does not have any special introductory offers configured by the developer. ```TypeScript INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS: = 3 ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.6.1/classes/default.html This method sets up the RevenueCat Purchases SDK using a PurchasesConfiguration object, offering a more flexible and recommended approach compared to the deprecated configure method. It encapsulates all configuration parameters within a single object. This allows for a cleaner and more extensible setup of the SDK. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Install Keyword (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.2.3/classes/default.html Sets the subscriber attribute for the install keyword. Passing an empty string or null will delete the attribute. The method takes `keyword` (null | string) as a parameter and returns void. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Setting Install Media Source in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.14.0/classes/default.html Assigns an install media source as a subscriber attribute to the user. Supplying an empty string or null will remove this specific attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Checking Trial/Introductory Price Eligibility with RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.3/classes/default.html This iOS-only method determines if a user is eligible for the introductory pricing period or trial of a given product. Developers should use this to decide whether to display the normal or introductory price. If eligibility cannot be definitively computed, `INTRO_ELIGIBILITY_STATUS_UNKNOWN` is returned, in which case displaying the non-introductory price is recommended. The `productIdentifiers` array specifies the products to check, and the `callback` returns a map of `IntroEligibility` per product ID. ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: { [productId: string]: IntroEligibility }) => void): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.0.0-rc.8/classes/default.html This method associates an install keyword with the user as a subscriber attribute. Passing an empty string or null to the `keyword` parameter will remove the attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Checking Trial/Introductory Price Eligibility with RevenueCat Cordova Plugin (iOS, JavaScript/TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.2/classes/default.html This iOS-only method computes whether a user is eligible for the introductory pricing period of a given product, including trials. It takes an array of product identifiers and a callback that returns a map of `IntroEligibility` per product ID. Android always returns `INTRO_ELIGIBILITY_STATUS_UNKNOWN`. ```TypeScript checkTrialOrIntroductoryPriceEligibility(productIdentifiers: string[], callback: (map: {}) => void): void ``` -------------------------------- ### Setting Install Media Source Subscriber Attribute in RevenueCat Cordova Plugin - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.2.3/classes/default.html Associates an install media source with the user as a subscriber attribute. Passing an empty string or null will delete the attribute. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Configuring RevenueCat Purchases with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/3.3.0/classes/default.html Sets up the RevenueCat SDK using a 'PurchasesConfiguration' object. This method is the recommended way to configure the SDK, offering more flexibility compared to the deprecated 'configure' method. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Configuring RevenueCat SDK with Configuration Object - RevenueCat Cordova Plugin Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.5/classes/default.html This method sets up the RevenueCat SDK using a `PurchasesConfiguration` object, providing a more flexible way to initialize the SDK compared to the deprecated `configure` method. It requires an API key and other configuration options encapsulated within the `PurchasesConfiguration` object. ```TypeScript configureWith(__namedParameters: PurchasesConfiguration): void ``` -------------------------------- ### Setting Subscriber Install Media Source - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/6.1.1/classes/default.html Sets the subscriber attribute for the install media source. Passing an empty string or `null` will delete the attribute. It accepts a `mediaSource` of type `null | string`. ```TypeScript setMediaSource(mediaSource: null | string): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.7.7/classes/default.html Sets the subscriber attribute associated with the install keyword for the user. Providing an empty string or null for `keyword` will delete the subscriber attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Property: introPrice - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.8.0/interfaces/PurchasesStoreProduct.html The introductory price details for the product, which can be null or a PurchasesIntroPrice object. ```TypeScript introPrice: null | PurchasesIntroPrice ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.6.1/classes/default.html Associates a subscriber attribute with the install keyword for the user. The `keyword` parameter accepts a string or null; an empty string or null will delete this subscriber attribute. ```TypeScript setKeyword(keyword: null | string): void ``` -------------------------------- ### Making a Purchase with RevenueCat Cordova Plugin - TypeScript Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/4.9.0/classes/default.html This function initiates a product purchase using the RevenueCat Cordova plugin. It requires a `productIdentifier` and provides `callback` functions for success and error handling. Optionally, `upgradeInfo` can be provided for Android subscription upgrades, and `type` specifies if the product is 'inapp' or 'subs'. ```TypeScript purchaseProduct(productIdentifier: string, callback: (__namedParameters: { customerInfo: CustomerInfo; productIdentifier: string }) => void, errorCallback: (__namedParameters: { error: PurchasesError; userCancelled: boolean }) => void, upgradeInfo?: null | UpgradeInfo, type?: PURCHASE_TYPE): void ``` -------------------------------- ### Setting Install Keyword in RevenueCat Cordova Plugin (TypeScript) Source: https://github.com/revenuecat/cordova-plugin-purchases-docs/blob/main/docs/5.3.0/classes/default.html Associates an install keyword with the user as a subscriber attribute. Providing an empty string or `null` will remove the attribute. This method returns `void`. ```TypeScript setKeyword(keyword: null | string): void ```