eb_purchase library

Classes

AndroidData
AndroidPurchaseModel
BasePurchaseModel
ChangeSubscriptionParam
This parameter object for upgrading or downgrading an existing subscription.
EbPurchaseService
Helper class for managing in-app purchases in Flutter applications.
GooglePlayProductDetails
The class represents the information of a product as registered in at Google Play store front.
GooglePlayPurchaseDetails
The class represents the information of a purchase made using Google Play.
GooglePlayPurchaseParam
Google Play specific parameter object for generating a purchase.
GooglePlayUserChoiceDetails
Data structure representing a UserChoiceDetails.
GooglePlayUserChoiceDetailsProduct
Data structure representing a UserChoiceDetails product.
IAPError
Captures an error from the underlying purchase platform.
InAppPurchase
Basic API for making in app purchases across multiple platforms.
InAppPurchaseAndroidPlatform
An InAppPurchasePlatform that wraps Android BillingClient.
InAppPurchaseAndroidPlatformAddition
Contains InApp Purchase features that are only available on PlayStore.
IosPurchaseModel
ProductDetails
The class represents the information of a product.
ProductDetailsResponse
The response returned by InAppPurchasePlatform.queryProductDetails.
PurchaseDetails
Represents the transaction details of a purchase.
PurchaseParam
The parameter object for generating a purchase.
PurchaseVerificationData
Represents the data that is used to verify purchases.
QueryPurchaseDetailsResponse
The response object for fetching the past purchases.
SKError
Dart wrapper around StoreKit's NSError.
SKPaymentDiscountWrapper
Dart wrapper around StoreKit's SKPaymentDiscount.
SKPaymentQueueDelegateWrapper
A wrapper around SKPaymentQueueDelegate.
SKPaymentQueueWrapper
A wrapper around SKPaymentQueue.
SKPaymentTransactionWrapper
Created when a payment is added to the SKPaymentQueueWrapper.
SKPaymentWrapper
Dart wrapper around StoreKit's SKPayment.
SKPriceLocaleWrapper
Object that indicates the locale of the price
SKProductDiscountWrapper
Dart wrapper around StoreKit's SKProductDiscount.
SkProductResponseWrapper
Dart wrapper around StoreKit's SKProductsResponse.
SKProductSubscriptionPeriodWrapper
Dart wrapper around StoreKit's SKProductSubscriptionPeriod.
SKProductWrapper
Dart wrapper around StoreKit's SKProduct.
SKReceiptManager
This class contains static methods to manage StoreKit receipts.
SKRequestMaker
A request maker that handles all the requests made by SKRequest subclasses.
SKStorefrontWrapper
Contains the location and unique identifier of an Apple App Store storefront.
SKTransactionObserverWrapper
Callback handlers for transaction status changes.

Constants

kConsumptionFailedErrorCode → const String
IAPError.code code used when a consuming a purchased item fails.
kIAPSource → const String
Indicates store front is Google Play
kPurchaseErrorCode → const String
IAPError.code code for failed purchases.
kRestoredPurchaseErrorCode → const String
IAPError.code code used when a query for previous transaction has failed.

Functions

setInAppPurchaseHostApi(InAppPurchaseAPI api) → void
Set up pigeon API.

Typedefs

OnError = void Function(String)
OnPurchaseDetailsReceived = void Function(List<PurchaseDetails> purchaseDetails)

Exceptions / Errors

InAppPurchaseException
Thrown to indicate that an action failed while interacting with the in_app_purchase plugin.