SK2Transaction class
Dart wrapper around StoreKit2's Transaction Note that in StoreKit2, a Transaction encompasses the data contained by SKPayment and SKTransaction in StoreKit1
Constructors
Properties
- appAccountToken → String?
-
A UUID that associates the transaction with a user on your own service.
final
- error → SKError?
-
Any error returned from StoreKit
final
- expirationDate → String?
-
The date the subscription expires or renews.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier for the transaction.
final
- originalId → String
-
The original transaction identifier of a purchase.
The original transaction identifier, originalID, is identical to id except
when the user restores a purchase or renews a transaction.
final
- price → double?
-
The price of the in-app purchase that the system records in the transaction.
final
- productId → String
-
The product identifier of the in-app purchase.
final
- purchaseDate → String
-
The date that the App Store charged the user’s account for a purchased or
restored product, or for a subscription purchase or renewal after a lapse.
final
- quantity → int
-
The number of consumable products purchased.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscriptionGroupID → String?
-
The identifier of the subscription group that the subscription belongs to.
final
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
Static Methods
-
finish(
int id) → Future< void> -
Wrapper around
Transaction.finish
https://developer.apple.com/documentation/storekit/transaction/3749694-finish Indicates to the App Store that the app delivered the purchased content or enabled the service to finish the transaction. -
restorePurchases(
) → Future< void> - Restore previously completed purchases.
-
startListeningToTransactions(
) → void - Start listening to transactions. Call this as soon as you can your app to avoid missing transactions.
-
stopListeningToTransactions(
) → void - Stop listening to transactions.
-
transactions(
) → Future< List< SK2Transaction> > -
A wrapper around
Transaction.all
https://developer.apple.com/documentation/storekit/transaction/3851203-all A sequence that emits all the customer’s transactions for your app.