SKPaymentTransactionWrapper class

Created when a payment is added to the SKPaymentQueueWrapper.

Transactions are delivered to your app when a payment is finished processing. Completed transactions provide a receipt and a transaction identifier that the app can use to save a permanent record of the processed payment.

Dart wrapper around StoreKit's SKPaymentTransaction.

Annotations
  • @JsonSerializable(createToJson: true)

Constructors

SKPaymentTransactionWrapper({required SKPaymentWrapper payment, required SKPaymentTransactionStateWrapper transactionState, SKPaymentTransactionWrapper? originalTransaction, double? transactionTimeStamp, String? transactionIdentifier, SKError? error})
Creates a new SKPaymentTransactionWrapper with the provided information.
SKPaymentTransactionWrapper.fromJson(Map<String, dynamic> map)
Constructs an instance of this from a key value map of data.
factory

Properties

error SKError?
The error object
final
hashCode int
The hash code for this object.
no setteroverride
originalTransaction SKPaymentTransactionWrapper?
The original Transaction.
final
payment SKPaymentWrapper
The payment that has been created and added to the payment queue which generated this transaction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionIdentifier String?
The unique string identifer of the transaction.
final
transactionState SKPaymentTransactionStateWrapper
Current transaction state.
final
transactionTimeStamp double?
The timestamp of the transaction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFinishMap() Map<String, String?>
The payload that is used to finish this transaction.
toString() String
A string representation of this object.
override

Operators

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