PurchaseAndroid constructor
const
PurchaseAndroid({
- bool? autoRenewingAndroid,
- String? currentPlanId,
- String? dataAndroid,
- String? developerPayloadAndroid,
- required String id,
- List<
String> ? ids, - bool? isAcknowledgedAndroid,
- required bool isAutoRenewing,
- bool? isSuspendedAndroid,
- String? obfuscatedAccountIdAndroid,
- String? obfuscatedProfileIdAndroid,
- String? packageNameAndroid,
- required IapPlatform platform,
- required String productId,
- required PurchaseState purchaseState,
- String? purchaseToken,
- required int quantity,
- String? signatureAndroid,
- required IapStore store,
- required double transactionDate,
- String? transactionId,
- bool? isAlternativeBilling,
Implementation
const PurchaseAndroid({
this.autoRenewingAndroid,
this.currentPlanId,
this.dataAndroid,
this.developerPayloadAndroid,
required this.id,
this.ids,
this.isAcknowledgedAndroid,
required this.isAutoRenewing,
/// Whether the subscription is suspended (Android)
/// A suspended subscription means the user's payment method failed and they need to fix it.
/// Users should be directed to the subscription center to resolve the issue.
/// Do NOT grant entitlements for suspended subscriptions.
/// Available in Google Play Billing Library 8.1.0+
this.isSuspendedAndroid,
this.obfuscatedAccountIdAndroid,
this.obfuscatedProfileIdAndroid,
this.packageNameAndroid,
required this.platform,
required this.productId,
required this.purchaseState,
this.purchaseToken,
required this.quantity,
this.signatureAndroid,
/// Store where purchase was made
required this.store,
required this.transactionDate,
this.transactionId,
this.isAlternativeBilling,
});