purchases_flutter library

Classes

AmazonConfiguration
A PurchasesConfiguration convenience object that sets PurchasesConfiguration.store to Store.amazon
CustomerInfo
Class containing all information regarding the customer
EntitlementInfo
The EntitlementInfo object gives you access to all of the information about the status of a user entitlement.
EntitlementInfos
This class contains all the entitlements associated to the user.
IntroductoryPrice
Contains all the introductory information associated with a Product
IntroEligibility
Holds the introductory price status
LogInResult
Class used to hold the result of the logIn method
Offering
An offering is a collection of Package available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
Offerings
This class contains all the offerings configured in RevenueCat dashboard. For more info see https://docs.revenuecat.com/docs/entitlements
Package
Contains information about the product available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
PromotedPurchaseResult
Class used to hold the result of the startPromotedPurchase method
PromotionalOffer
The signed discount applied to a payment
Purchases
Entry point for Purchases.
PurchasesConfiguration
Used when calling configure to configure the RevenueCat plugin
PurchasesErrorHelper
Helper to convert from PlatformExceptions to PurchasesErrorCodes
StoreProduct
Contains all the product details associated with a StoreProduct
StoreProductDiscount
StoreTransaction
Represents a purchase transaction
UpgradeInfo
This class holds the information used when upgrading from another sku. To be used with purchaseProduct and purchasePackage.

Enums

BillingFeature
Billing Feature types
IntroEligibilityStatus
Possible IntroEligibility status. Use checkTrialOrIntroductoryPriceEligibility to determine the eligibility
LogLevel
Log levels.
OwnershipType
Enum of ownership types
PackageType
Enumeration of all possible Package types.
PeriodType
Enum of supported period types for an entitlement.
PeriodUnit
ProrationMode
Replace SKU's ProrationMode.
PurchasesErrorCode
Different error codes returned by the Purchases functions.
PurchaseType
Supported SKU types.
RefundRequestStatus
Status codes for refund requests.
Store
Enum of supported stores

Typedefs

CustomerInfoUpdateListener = void Function(CustomerInfo customerInfo)
Used to handle async updates from Purchases. Should be implemented to receive updates when the CustomerInfo changes.
LogHandler = void Function(LogLevel logLevel, String message)
ReadyForPromotedProductPurchaseListener = void Function(String productIdentifier, Future<PromotedPurchaseResult> startPurchase())
iOS Only Listener called when a user initiates a promoted in-app purchase from the App Store. If your app is able to handle a purchase at the current time, run the startPurchase block in this method. If the app is not in a state to make a purchase: cache the startPurchase block, then call the startPurchase block when the app is ready to make the promoted purchase.

Exceptions / Errors

UnsupportedPlatformException