VerifyPurchaseGoogleOptions class

Google Play Store verification parameters. Used for server-side receipt validation via Google Play Developer API.

⚠️ SECURITY: Contains sensitive tokens (accessToken, purchaseToken). Do not log or persist this data.

Constructors

VerifyPurchaseGoogleOptions({required String accessToken, bool? isSub, required String packageName, required String purchaseToken, required String sku})
const
VerifyPurchaseGoogleOptions.fromJson(Map<String, dynamic> json)
factory

Properties

accessToken String
Google OAuth2 access token for API authentication. ⚠️ Sensitive: Do not log this value.
final
hashCode int
The hash code for this object.
no setterinherited
isSub bool?
Whether this is a subscription purchase (affects API endpoint used)
final
packageName String
Android package name (e.g., com.example.app)
final
purchaseToken String
Purchase token from the purchase response. ⚠️ Sensitive: Do not log this value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sku String
Product SKU to validate
final

Methods

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

Operators

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