PurchaseVerificationData class
Represents the data that is used to verify purchases.
The property source helps you to determine the method to verify purchases. Different source of purchase has different methods of verifying purchases.
Both platforms have 2 ways to verify purchase data. You can either choose to verify the data locally using localVerificationData or verify the data using your own server with serverVerificationData. It is preferable to verify purchases using a server with serverVerificationData.
You should never use any purchase data until verified.
Constructors
- PurchaseVerificationData({required String localVerificationData, required String serverVerificationData, required String source})
- Creates a PurchaseVerificationData object with the provided information.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- localVerificationData → String
-
The data used for local verification.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverVerificationData → String
-
The data used for server verification.
final
- source → String
-
Indicates the source of the purchase.
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