linkfive_purchases library
LinkFive Purchases Package
This Plugin will connect your App to https://www.linkfive.io
Classes
- AlternativeBillingOnlyReportingDetailsWrapper
- Params containing the response code and the debug message from the Play Billing API response.
- BillingChoiceModeConverter
- Serializer for BillingChoiceMode.
- BillingClient
-
This class can be used directly instead of
InAppPurchaseConnection
to call Play-specific billing APIs. - BillingClientFeatureConverter
- Serializer for BillingClientFeature.
- BillingClientManager
- Utility class that manages a BillingClient connection.
- BillingResponseConverter
- Serializer for BillingResponse.
- BillingResultWrapper
- Params containing the response code and the debug message from the Play Billing API response.
- CallbackInterface
- This plugin is made by LinkFive - Flutter Subscription Management https://www.linkfive.io/
- HasBillingResponse
- Abstraction of result of BillingClient operation that includes a BillingResponse.
- HostBillingClientCallbackHandler
- Implementation of InAppPurchaseCallbackApi, for use by BillingClient.
- IAPError
- Captures an error from the underlying purchase platform.
- InAppPurchasePlatform
- The interface that implementations of in_app_purchase must implement.
- InAppPurchasePlatformAddition
- The interface that platform implementations must implement when they want to provide platform-specific in_app_purchase features.
- InAppPurchasePlatformAdditionProvider
- The InAppPurchasePlatformAdditionProvider is responsible for providing a platform-specific InAppPurchasePlatformAddition.
- LinkFiveActiveProducts
- All active and valid LinkFive plans & Products
- LinkFiveInterface
- This plugin is made by LinkFive - Flutter Subscription Management https://www.linkfive.io/
- LinkFiveLogger
- Logger used by LinkFive applications
- LinkFiveOneTimePurchase
- Verified Purchase
- LinkFivePlan
- Verified Receipt from LinkFive including all data
- LinkFiveProductDetails
- LinkFive class with platform specific information
- LinkFiveProducts
- LinkFive Products to offer.
- LinkFivePurchases
- LinkFive Purchases.
- LinkFivePurchasesImpl
- LinkFiveResponseData
- Response Data from LinkFive
- LinkFiveResponseDataOneTimePurchase
- LinkFiveResponseDataSubscription
- LinkFiveRestoreAppleItem
- A single restored Apple TransactionId
- LinkFiveRestoreGoogleItem
- A single restored Google Transaction
- OneTimePurchaseOfferDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.ProductDetails.OneTimePurchaseOfferDetails
. - OneTimePurchasePrice
- The Price of a one time purchase.
- Period
- The Period class holds the amounts of periodUnits. Basically 3 Months or 5 Days, 1 Year etc.
- PricingPhase
- A Product Phase represents a pricing interval.
- PricingPhaseWrapper
- Represents a pricing phase, describing how a user pays at a point in time.
- ProductDetails
- The class represents the information of a product.
- ProductDetailsResponse
- The response returned by InAppPurchasePlatform.queryProductDetails.
- ProductDetailsResponseWrapper
-
Translation of
com.android.billingclient.api.ProductDetailsResponseListener
. - ProductDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.ProductDetails
. - ProductTypeConverter
- Serializer for ProductType.
- ProductWrapper
-
Dart wrapper around
com.android.billingclient.api.Product
. - ProrationModeConverter
- Serializer for ProrationMode.
- PurchaseDetails
- Represents the transaction details of a purchase.
- PurchaseHistoryRecordWrapper
- Data structure representing a purchase history record.
- PurchaseParam
- The parameter object for generating a purchase.
- PurchasesHistoryResult
- A data struct representing the result of a purchase history.
- PurchasesResultWrapper
- A data struct representing the result of a transaction.
- PurchaseStateConverter
- Serializer for PurchaseStateWrapper.
- PurchaseStateStreamInterface
- PurchaseVerificationData
- Represents the data that is used to verify purchases.
- PurchaseWrapper
- Data structure representing a successful purchase.
- RecurrenceModeConverter
- Serializer for RecurrenceMode.
- ReplacementModeConverter
- Serializer for ReplacementMode.
- SubscriptionData
- SubscriptionOfferDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.ProductDetails.SubscriptionOfferDetails
. - UserChoiceDetailsProductWrapper
- Data structure representing a UserChoiceDetails product.
- UserChoiceDetailsWrapper
-
This wraps
com.android.billingclient.api.UserChoiceDetails
Enums
- BillingChoiceMode
- Plugin concept to cover billing modes.
- BillingClientFeature
- Features/capabilities supported by BillingClient.isFeatureSupported().
- BillingResponse
-
Possible
BillingClient
response statuses. - LinkFiveEnvironment
- LinkFiveLogLevel
- LinkFiveProductType
- PeriodUnit
- ISO 8601 conform Units
- ProductType
- Enum representing potential ProductDetailsWrapper.productTypes.
- ProrationMode
- Enum representing the proration mode.
- PurchaseState
- PurchaseStateWrapper
- Possible state of a PurchaseWrapper.
- PurchaseStatus
- Status for a PurchaseDetails.
- Recurrence
- RecurrenceMode
- Recurrence mode of the pricing phase.
- ReplacementMode
- Enum representing the replacement mode.
- SubscriptionDuration
Extensions
Constants
- kInvalidAlternativeBillingReportingDetailsErrorMessage → const String
- The error message shown when the map representing details is invalid from method channel.
- kInvalidBillingResultErrorMessage → const String
- The error message shown when the map represents billing result is invalid from method channel.
Typedefs
- BillingClientFactory = BillingClient Function(PurchasesUpdatedListener onPurchasesUpdated, UserSelectedAlternativeBillingListener? alternativeBillingListener)
- Factory for creating BillingClient instances, to allow injection of custom billing clients in tests.
- OnBillingServiceDisconnected = void Function()
-
Callback triggered when the
BillingClientWrapper
is disconnected. - PurchasesUpdatedListener = void Function(PurchasesResultWrapper purchasesResult)
- Callback triggered by Play in response to purchase activity.
- UserSelectedAlternativeBillingListener = void Function(UserChoiceDetailsWrapper userChoiceDetailsWrapper)
- Wraps a UserChoiceBillingListener
Exceptions / Errors
- InAppPurchaseException
- Thrown to indicate that an action failed while interacting with the in_app_purchase plugin.