Skip to main content

8.2.6 - OpenIAP 1.3.17 Sync

· One min read
Hyo
Maintainer of flutter_inapp_purchase & expo-iap

This release syncs with OpenIAP v1.3.17, adding new types for Google Play Billing Library 5.0+ and 7.0+ features.

New Types

InstallmentPlanDetailsAndroid (Billing Library 7.0+)

Subscription installment plan details for plans that allow users to pay in installments.

class InstallmentPlanDetailsAndroid {
/// Committed payments count after signup (e.g., 12 monthly payments)
final int commitmentPaymentsCount;
/// Subsequent commitment payments when plan renews (0 if reverts to normal)
final int subsequentCommitmentPaymentsCount;
}

This is available on ProductSubscriptionAndroidOfferDetails.installmentPlanDetails.

PendingPurchaseUpdateAndroid (Billing Library 5.0+)

Details about pending subscription upgrades/downgrades.

class PendingPurchaseUpdateAndroid {
/// Product IDs for the pending purchase update
final List<String> products;
/// Purchase token for the pending transaction
final String purchaseToken;
}

This is available on PurchaseAndroid.pendingPurchaseUpdateAndroid.

purchaseOptionIdAndroid (Billing Library 7.0+)

New field on DiscountOffer and ProductAndroidOneTimePurchaseOfferDetail to identify which purchase option the user selected.

// Available on DiscountOffer
discountOffer.purchaseOptionIdAndroid // String?

// Available on ProductAndroidOneTimePurchaseOfferDetail
// Note: The field is named purchaseOptionId on this class.
productAndroidOneTimePurchaseOfferDetail.purchaseOptionId // String?

OpenIAP Versions

PackageVersion
openiap-gql1.3.17
openiap-google1.3.28
openiap-apple1.3.14

Installation

dependencies:
flutter_inapp_purchase: ^8.2.6