billing_client_wrappers library

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.
HasBillingResponse
Abstraction of result of BillingClient operation that includes a BillingResponse.
HostBillingClientCallbackHandler
Implementation of InAppPurchaseCallbackApi, for use by BillingClient.
OneTimePurchaseOfferDetailsWrapper
Dart wrapper around com.android.billingclient.api.ProductDetails.OneTimePurchaseOfferDetails.
PricingPhaseWrapper
Represents a pricing phase, describing how a user pays at a point in time.
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.
PurchaseHistoryRecordWrapper
Data structure representing a purchase history record.
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.
PurchaseWrapper
Data structure representing a successful purchase.
RecurrenceModeConverter
Serializer for RecurrenceMode.
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.
ProductType
Enum representing potential ProductDetailsWrapper.productTypes.
ProrationMode
Enum representing the proration mode.
PurchaseStateWrapper
Possible state of a PurchaseWrapper.
RecurrenceMode
Recurrence mode of the pricing phase.

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