in_app_purchase library

Classes

BillingClient
This class can be used directly instead of InAppPurchaseConnection to call Play-specific billing APIs. [...]
BillingResultWrapper
Params containing the response code and the debug message from the Play Billing API response.
IAPError
Captures an error from the underlying purchase platform. [...]
InAppPurchaseConnection
Basic API for making in app purchases across multiple platforms. [...]
ProductDetails
The class represents the information of a product. [...]
ProductDetailsResponse
The response returned by InAppPurchaseConnection.queryProductDetails. [...]
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. [...]
PurchaseVerificationData
Represents the data that is used to verify purchases. [...]
PurchaseWrapper
Data structure representing a successful purchase. [...]
QueryPurchaseDetailsResponse
The response object for fetching the past purchases. [...]
SkuDetailsResponseWrapper
Translation of com.android.billingclient.api.SkuDetailsResponseListener. [...]
SkuDetailsWrapper
Dart wrapper around com.android.billingclient.api.SkuDetails. [...]

Constants

kOnPurchasesUpdated → const String
@visibleForTesting
'PurchasesUpdatedListener#onPurchasesUpdated(int, List<Purchase>)'

Properties

kConsumptionFailedErrorCode String
final
kPurchaseErrorCode String
final
kRestoredPurchaseErrorCode String
final

Enums

BillingResponse
Possible BillingClient response statuses. [...]
IAPSource
Which platform the request is on.
PurchaseStateWrapper
Possible state of a PurchaseWrapper. [...]
PurchaseStatus
SkuType
Enum representing potential SkuDetailsWrapper.types. [...]

Typedefs

OnBillingServiceDisconnected() → void
Callback triggered when the BillingClientWrapper is disconnected. [...]
PurchasesUpdatedListener(PurchasesResultWrapper purchasesResult) → void
Callback triggered by Play in response to purchase activity. [...]