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.
GoogleProductChangeInfo
InstallmentsInfo
Type containing information of installment subscriptions. Currently only supported in Google Play.
IntroductoryPrice
IntroEligibility
Holds the introductory price status
LogInResult
Class used to hold the result of the logIn method
Offering
Offerings
This class contains all the offerings configured in RevenueCat dashboard. For more info see https://docs.revenuecat.com/docs/entitlements
Package
Period
PresentedOfferingContext
PresentedOfferingTargetingContext
Price
Contains all the details associated with a Price
PricingPhase
PromotedPurchaseResult
Class used to hold the result of the startPromotedPurchase method
PromotionalOffer
The signed discount applied to a payment
PurchaseParams
Parameters for making a purchase.
PurchaseResult
Represents the successful result of a purchase operation.
Purchases
Entry point for Purchases.
PurchasesAreCompletedBy
PurchasesAreCompletedByMyApp
PurchasesAreCompletedByRevenueCat
PurchasesConfiguration
Used when calling configure to configure the RevenueCat plugin
PurchasesError
Error information for purchases
PurchasesErrorHelper
Helper to convert from PlatformExceptions to PurchasesErrorCodes
Storefront
Contains the information about the current store account.
StoreProduct
StoreProductDiscount
StoreTransaction
SubscriptionOption
UpgradeInfo
This class holds the information used when upgrading from another sku. To be used with purchaseProduct and purchasePackage.
VirtualCurrencies
The VirtualCurrencies object contains all the virtual currencies associated to a user.
VirtualCurrency
The VirtualCurrency object represents information about a virtual currency in the app. Use this object to access information about a virtual currency, such as its current balance.
WebPurchaseRedemption
Represents a web purchase redemption
WebPurchaseRedemptionError
WebPurchaseRedemptionExpired
WebPurchaseRedemptionInvalidToken
WebPurchaseRedemptionPurchaseBelongsToOtherUser
WebPurchaseRedemptionResult
Represents the result of a web purchase redemption
WebPurchaseRedemptionSuccess
WinBackOffer

Enums

BillingFeature
Billing Feature types
EntitlementVerificationMode
Enum of entitlement verification modes
GoogleProrationMode
GoogleProductChangeInfo's ProrationMode.
InAppMessageType
Enum for in-app message types. This can be used if you disable automatic in-app message from showing automatically. Then, you can pass what type of messages you want to show in the showInAppMessages method in Purchases.
IntroEligibilityStatus
Possible IntroEligibility status. Use checkTrialOrIntroductoryPriceEligibility to determine the eligibility
LogLevel
Log levels.
OfferPaymentMode
OwnershipType
Enum of ownership types
PackageType
Enumeration of all possible Package types.
PeriodType
Enum of supported period types for an entitlement.
PeriodUnit
ProductCategory
Supported StoreProduct types.
ProrationMode
Replace SKU's ProrationMode.
PurchasesAreCompletedByType
Modes for completing the purchase process.
PurchasesErrorCode
Different error codes returned by the Purchases functions.
PurchaseType
Supported SKU types.
RecurrenceMode
RefundRequestStatus
Status codes for refund requests.
Store
Enum of supported stores
StoreKitVersion
VerificationResult
Enum of entitlement verification modes

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