AppStorePurchaseDetails class

The class represents the information of a purchase made with the Apple AppStore.

Constructors

AppStorePurchaseDetails({String? purchaseID, required String productID, required PurchaseVerificationData verificationData, required String? transactionDate, required SKPaymentTransactionWrapper skPaymentTransaction, required PurchaseStatus status})
Creates a new AppStore specific purchase details object with the provided details.
AppStorePurchaseDetails.fromSKTransaction(SKPaymentTransactionWrapper transaction, String base64EncodedReceipt)
Generate a AppStorePurchaseDetails object based on an iOS SKPaymentTransactionWrapper object.
factory

Properties

error ↔ IAPError?
The error details when the status is PurchaseStatus.error.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
pendingCompletePurchase bool
The developer has to call InAppPurchasePlatform.completePurchase if the value is true and the product has been delivered to the user.
getter/setter pairinherited-setter
productID String
The product identifier of the purchase.
finalinherited
purchaseID String?
A unique identifier of the purchase.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skPaymentTransaction SKPaymentTransactionWrapper
Points back to the SKPaymentTransactionWrapper which was used to generate this AppStorePurchaseDetails object.
final
status ↔ PurchaseStatus
The status that this PurchaseDetails is currently on.
getter/setter pair
transactionDate String?
The timestamp of the transaction.
finalinherited
verificationData → PurchaseVerificationData
The verification data of the purchase.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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