PurchaseWrapper class

Data structure representing a successful purchase.

All purchase information should also be verified manually, with your server if at all possible. See "Verify a purchase".

This wraps com.android.billlingclient.api.Purchase

Annotations

Constructors

PurchaseWrapper({@required String orderId, @required String packageName, @required int purchaseTime, @required String purchaseToken, @required String signature, @required String sku, @required bool isAutoRenewing, @required String originalJson, @required String developerPayload, @required bool isAcknowledged, @required PurchaseStateWrapper purchaseState})
PurchaseWrapper.fromJson(Map map)
factory

Properties

developerPayload String
The payload specified by the developer when the purchase was acknowledged or consumed.
final
hashCode int
The hash code for this object. [...]
read-only, override
isAcknowledged bool
Whether the purchase has been acknowledged. [...]
final
isAutoRenewing bool
True for subscriptions that renew automatically. Does not apply to SkuType.inapp products. [...]
final
orderId String
The unique ID for this purchase. Corresponds to the Google Payments order ID.
final
originalJson String
Details about this purchase, in JSON. [...]
final
packageName String
The package name the purchase was made from.
final
purchaseState PurchaseStateWrapper
Determines the current state of the purchase. [...]
final
purchaseTime int
When the purchase was made, as an epoch timestamp.
final
purchaseToken String
A unique ID for a given SkuDetailsWrapper, user, and purchase.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signature String
Signature of purchase data, signed with the developer's private key. Uses RSASSA-PKCS1-v1_5.
final
sku String
The product ID of this purchase.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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