FireflutterInAppPurchase class

In app purchase

Constructors

FireflutterInAppPurchase()

Properties

applicationUserName String
read-only
autoConsume bool
It autoconsume the consumable product by default. If you set it to false, you must manually mark the product as consumed to enable another purchase (Android only).
read / write
connection InAppPurchaseConnection
read / write
consumableIds List
On android you need to specify which is consumable. By listing the product ids
read / write
db → dynamic
Product items to sell to users.
read-only
error PublishSubject
error event will be fired when any of purchase fails(or errors). This includes cancellation, verification failure, and other errors.
read / write
getMyPurchases Future
Returns the Collection Query to get the login user's success purchases.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
missingIds List<String>
read / write
pending PublishSubject
pending event will be fired on incoming purchases or previous purchase of previous app session.
read / write
productReady BehaviorSubject
productReady is being fired after it got product list from the server.
read / write
products Map<String, ProductDetails>
read / write
purchaseCol CollectionReference
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
success PublishSubject<PurchaseSession>
success event will be fired after the purchase has made and the the app can deliver the purchase to user.
read / write
user → dynamic
read-only

Methods

buyConsumable(ProductDetails product) Future
getPurchaseSession(PurchaseDetails purchaseDetails) Future<PurchaseSession>
getPurchaseSessionBySessionId(String id) Future<PurchaseSession>
init({Set<String> productIds, List<String> consumableIds, bool autoConsume = true}) → dynamic
Initialize payment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited