NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #3247 most downloaded on pub.dev
In App Purchase plugin for flutter. This project has been forked by react-native-iap and we are willing to share same experience with that on react-native.
Latest stable
11.3.2
Last release 14 days ago
07 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
8 years old
246 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
See the Flutter GitHub Release for package-specific changes: https://github.com/hyodotdev/openiap/releases/tag/flutter-iap-9.0.1
See the Flutter GitHub Release for package-specific changes: https://github.com/hyodotdev/openiap/releases/tag/flutter-iap-9.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
See the Flutter release tag for the source snapshot: https://github.com/hyodotdev/openiap/tree/flutter-iap-9.0.0-rc.1
ci: add automated deploy workflow for pub.dev
subscriptionOffers Parsing for iOS: Fixed ProductSubscriptionIOS.subscriptionOffers always being null even though the native OpenIAP layer returned th
ProductSubscriptionIOS.subscriptionOffers always being null even though the native OpenIAP layer returned the data correctly_toDouble and _toInt helpers to handle both num and String inputs from platform channels, preventing runtime TypeErrorsInstallmentPlanDetailsAndroid (Billing Library 7.0+): Subscription installment plan details for plans that allow users to pay in installments
DiscountOffer to identify which purchase option the user selectedopeniap-gql: 1.3.16 -> 1.3.17openiap-google: 1.3.27 -> 1.3.28ExternalPurchaseCustomLink API (iOS 18.1+): Support for Apple's custom external purchase links
isEligibleForExternalPurchaseCustomLinkIOS() - Check eligibilitygetExternalPurchaseCustomLinkTokenIOS() - Get token for reportingshowExternalPurchaseCustomLinkNoticeIOS() - Show disclosure noticeopeniap-apple: 1.3.13 -> 1.3.14openiap-gql: 1.3.15 -> 1.3.16openiap-google: 1.3.26 -> 1.3.27
openiap-google: 1.3.26 -> 1.3.27One-Time Purchase Discounts (Android 8.0+): Added offerToken field to RequestPurchaseAndroidProps for applying discounts to non-subscription purchases
offerToken field to RequestPurchaseAndroidProps for applying discounts to non-subscription purchasesAndroid suffix:
obfuscatedAccountIdAndroid -> obfuscatedAccountIdobfuscatedProfileIdAndroid -> obfuscatedProfileIdpurchaseTokenAndroid -> purchaseTokenreplacementModeAndroid -> replacementModeopeniap-apple: 1.3.12 -> 1.3.13openiap-gql: 1.3.14 -> 1.3.15openiap-google: 1.3.25 -> 1.3.26Win-Back Offers (iOS 18+): Re-engage churned subscribers with discounts or free trials via WinBackOfferInputIOS
WinBackOfferInputIOSPromotionalOfferJWSInputIOSintroductoryOfferEligibilityProductStatusAndroid enum for product fetch results (Ok, NotFound, NoOffersAvailable, Unknown)includeSuspendedAndroid option and isSuspendedAndroid fieldSubResponseCodeAndroid for granular error information via BillingResultAndroidProductStatusAndroid - Product fetch status enumSubResponseCodeAndroid - Detailed error codes enumSubscriptionOfferTypeIOS.WinBack - Win-back offer typeWinBackOfferInputIOS - Win-back offer configurationPromotionalOfferJWSInputIOS - JWS promotional offer inputBillingResultAndroid - Extended billing result with sub-response codewinBackOffer, promotionalOfferJWS, introductoryOfferEligibility removed from RequestPurchaseIosProps, now only in RequestSubscriptionIosPropsopeniap-apple: 1.3.10 -> 1.3.13openiap-gql: 1.3.12 -> 1.3.14openiap-google: 1.3.23 -> 1.3.25Item-level Subscription Replacement (Android 8.1.0+): Added subscriptionProductReplacementParams support as alternative to deprecated replacementModeA…
DiscountOffer and SubscriptionOffer types for cross-platform compatibilitysubscriptionProductReplacementParams support as alternative to deprecated replacementModeAndroidfromJson using normalized value matching, removed redundant .map((e) => e).toList() for scalar listsopeniap-apple: 1.3.9 -> 1.3.10openiap-gql: 1.3.11 -> 1.3.12openiap-google: 1.3.22 -> 1.3.23Parameter naming: RequestPurchaseProps.inApp() and RequestPurchaseProps.subs() now use apple/google fields instead of ios/android
Parameter naming: RequestPurchaseProps.inApp() and RequestPurchaseProps.subs() now use apple/google fields instead of ios/android
// Before (8.1.x)
RequestPurchaseProps.inApp((
ios: RequestPurchaseIosProps(sku: 'product_id'),
android: RequestPurchaseAndroidProps(skus: ['product_id']),
))
// After (8.2.0)
RequestPurchaseProps.inApp((
apple: RequestPurchaseIosProps(sku: 'product_id'),
google: RequestPurchaseAndroidProps(skus: ['product_id']),
useAlternativeBilling: null,
))
AlternativeBillingModeAndroid: Use BillingProgramAndroid instead
AlternativeBillingModeAndroid.alternativeOnly -> BillingProgramAndroid.ExternalOfferAlternativeBillingModeAndroid.userChoice -> BillingProgramAndroid.UserChoiceBillingalternativeBillingModeAndroid parameter: Use enableBillingProgramAndroid in initConnection() instead
openiap-gql: 1.3.10 -> 1.3.11External Payments Program (Android 8.3.0+, Japan Only): Support for Google Play Billing Library 8.3.0's External Payments program
External Payments Program (Android 8.3.0+, Japan Only): Support for Google Play Billing Library 8.3.0's External Payments program
BillingProgramAndroid.ExternalPayments billing program typeDeveloperBillingOptionParamsAndroid to configure external payment option in purchase flowDeveloperBillingLaunchModeAndroid enum for how to launch the external payment linkDeveloperProvidedBillingDetailsAndroid type containing externalTransactionToken when user selects developer billingdeveloperProvidedBillingAndroid stream for listening to developer billing selection eventsdeveloperBillingOption field in RequestPurchaseAndroidProps and RequestSubscriptionAndroidProps// Listen for developer billing selection
iap.developerProvidedBillingAndroid.listen((details) {
// User selected developer billing
// Report transaction to Google within 24 hours using details.externalTransactionToken
print('External transaction token: ${details.externalTransactionToken}');
});
// Request purchase with external payments option
await iap.requestPurchaseWithBuilder(
build: (builder) {
builder.google.skus = ['product_id'];
builder.google.developerBillingOption = DeveloperBillingOptionParamsAndroid(
billingProgram: BillingProgramAndroid.ExternalPayments,
launchMode: DeveloperBillingLaunchModeAndroid.LaunchInExternalBrowserOrApp,
linkUri: 'https://example.com/checkout',
);
builder.type = ProductQueryType.InApp;
},
);
New Event: IapEvent.DeveloperProvidedBillingAndroid - Fired when user selects developer billing in External Payments flow
enableBillingProgramAndroid in InitConnectionConfig: Enable a specific billing program during connection initialization
// Enable External Payments during connection
await iap.initConnection(
enableBillingProgramAndroid: BillingProgramAndroid.ExternalPayments,
);
This provides a cleaner alternative to calling enableBillingProgram() separately before initConnection().
openiap-gql: 1.3.8 -> 1.3.10openiap-google: 1.3.16 -> 1.3.19openiap-apple: 1.3.7 -> 1.3.8openiap-google: 1.3.15 -> 1.3.16
openiap-google: 1.3.15 -> 1.3.16android field is now deprecated; use google instead
Advanced Commerce Data (iOS 15+): Support for StoreKit 2's Product.PurchaseOption.custom API
advancedCommerceData field in RequestPurchaseIosProps and RequestSubscriptionIosPropsawait iap.requestPurchaseWithBuilder(
build: (builder) {
builder.ios.sku = 'com.example.premium';
builder.ios.advancedCommerceData = 'campaign_summer_2025';
builder.type = ProductQueryType.InApp;
},
);
google field support (Android): New google field in request parameters with android fallback
android field is now deprecated; use google insteadrequestPurchaseOnPromotedProductIOS(): Use purchasePromoted stream + requestPurchase() instead
// Recommended approach
iap.purchasePromoted.listen((productId) async {
if (productId != null) {
await iap.requestPurchaseWithBuilder(
build: (builder) {
builder.ios.sku = productId;
builder.type = ProductQueryType.InApp;
},
);
}
});
openiap-apple: 1.3.5 -> 1.3.7openiap-google: 1.3.14 -> 1.3.16openiap-gql: 1.3.5 -> 1.3.8`verifyPurchase` and `validateReceipt` API changed: Now uses platform-specific options instead of deprecated sku and androidOptions parameters
oneTimePurchaseOfferDetailsAndroid is now an array: Changed from ProductAndroidOneTimePurchaseOfferDetail? to List<ProductAndroidOneTimePurchaseOfferDetail>? to support multiple discount offers per product (Google Play Billing 7.0+)
// Before (v7.x)
final price = product.oneTimePurchaseOfferDetailsAndroid?.formattedPrice;
// After (v8.x)
final offers = product.oneTimePurchaseOfferDetailsAndroid;
final price = offers?.isNotEmpty == true ? offers![0].formattedPrice : null;
verifyPurchase and validateReceipt API changed: Now uses platform-specific options instead of deprecated sku and androidOptions parameters
// Before (v7.x)
final result = await iap.verifyPurchase(sku: 'product_id');
final result = await iap.verifyPurchase(
sku: 'product_id',
androidOptions: VerifyPurchaseAndroidOptions(...),
);
// After (v8.x) - iOS
final result = await iap.verifyPurchase(
apple: VerifyPurchaseAppleOptions(sku: 'product_id'),
);
// After (v8.x) - Android
final result = await iap.verifyPurchase(
google: VerifyPurchaseGoogleOptions(
sku: 'product_id',
accessToken: 'your-oauth-token', // From your backend
packageName: 'com.your.app',
purchaseToken: purchase.purchaseToken,
),
);
Billing Programs API (Android 8.2.0+): Support for external billing programs
isBillingProgramAvailableAndroid() - Check if a billing program is availablecreateBillingProgramReportingDetailsAndroid() - Get external transaction token for reportinglaunchExternalLinkAndroid() - Launch external link for billing programs// Check availability
final result = await iap.isBillingProgramAvailableAndroid(
BillingProgramAndroid.ExternalOffer,
);
if (result.isAvailable) {
// Launch external link
await iap.launchExternalLinkAndroid(
LaunchExternalLinkParamsAndroid(
billingProgram: BillingProgramAndroid.ExternalOffer,
launchMode: ExternalLinkLaunchModeAndroid.LaunchInExternalBrowserOrApp,
linkType: ExternalLinkTypeAndroid.LinkToDigitalContentOffer,
linkUri: 'https://your-payment-site.com/purchase',
),
);
// Get reporting token
final details = await iap.createBillingProgramReportingDetailsAndroid(
BillingProgramAndroid.ExternalOffer,
);
// Send details.externalTransactionToken to your server
}
One-Time Product Discounts (Android 8.0+): New fields in ProductAndroidOneTimePurchaseOfferDetail
offerId - Unique offer identifierfullPriceMicros - Full (non-discounted) pricediscountDisplayInfo - Discount percentage and amountlimitedQuantityInfo - Maximum and remaining quantityvalidTimeWindow - Offer validity periodofferTags - List of offer tagsofferToken - Token for purchase requestspreorderDetailsAndroid - Pre-order release dates (Android 8.0+)rentalDetailsAndroid - Rental period information (Android 8.0+)Purchase Suspension Status (Android 8.1.0+): New isSuspendedAndroid field in PurchaseAndroid
for (final purchase in purchases) {
if (purchase is PurchaseAndroid && purchase.isSuspendedAndroid == true) {
// Subscription suspended - do not grant access
// Direct user to fix payment method
}
}
checkAlternativeBillingAvailabilityAndroid() - Use isBillingProgramAvailableAndroid(BillingProgramAndroid.ExternalOffer) insteadshowAlternativeBillingDialogAndroid() - Use launchExternalLinkAndroid() insteadcreateAlternativeBillingTokenAndroid() - Use createBillingProgramReportingDetailsAndroid(BillingProgramAndroid.ExternalOffer) insteaddart:io import causing web build failures
dart:io Platform with defaultTargetPlatform from Flutter foundationkIsWeb guards to prevent native API calls on webopeniap-apple: 1.3.0 → 1.3.5openiap-google: 1.3.12 → 1.3.14openiap-gql: 1.3.2 → 1.3.5See Migration from v7 for detailed upgrade instructions.
feat: Add store field to Purchase types (deprecates platform)
IapStore enum for unified store identification (apple, google, horizon, unknown)store field to Purchase types (deprecates platform)apple/google keys in request parameters (alongside legacy ios/android)feat: Add verifyPurchaseWithProvider for IAPKit integration
verifyPurchaseWithProvider for IAPKit integration
VerificationMethod option: ignore, local, iapkit_Map<Object?, Object?> cast errors on iOS 26
normalizeDynamicMap for recursive map conversionchore(deps): Update openiap-versions
chore(deps): Update openiap-versions
{
"apple": "1.2.38"
}
chore(deps): Update openiap-versions
chore(deps): Update openiap-versions
{
"google": "1.3.7",
"apple": "1.2.38"
}
chore(deps): Update openiap-versions
chore(deps): Update openiap-versions
{
"google": "1.3.6",
"apple": "1.2.36"
}
feat: Add macOS platform support
chore(deps): openiap-apple@1.2.34
`json { "gql": "1.2.5", "google": "1.3.5", "apple": "1.2.32" } `
Update openiap-versions.
{
"gql": "1.2.5",
"google": "1.3.5",
"apple": "1.2.32"
}
fix(android): Prevent incomplete product data on repeated fetchProducts calls
fetchProducts calls
displayPrice and other fields were missing on subsequent calls:::warning Migration Required for v7.1.14+
Due to product flavor support added in v7.1.13, apps using Google Play must add platform dimension configuration to avoid build errors. Add to android/app/build.gradle:
android {
defaultConfig {
missingDimensionStrategy 'platform', 'play'
}
}
See Android Setup Guide for details. :::
feat: Add Horizon OS support for Meta Quest devices
openiap-google-horizon dependency for Meta Quest Platform SDKmissingDimensionStrategy 'platform', 'play' to their build.gradleintroductoryPricePaymentModeIOS is now required (non-nullable) in ProductSubscriptionIOS
PaymentModeIOS? to PaymentModeIOS (required field)PaymentModeIOS.Empty when not provided_parsePaymentMode helper to return PaymentModeIOS.Empty instead of nullintroductoryPricePaymentModeIOS: PaymentModeIOS.Empty when creating ProductSubscriptionIOS instances manually`json { "apple": "1.2.25", "google": "1.3.1", "gql": "1.2.2" } `
Update openiap-versions.
{
"apple": "1.2.25",
"google": "1.3.1",
"gql": "1.2.2"
}
fix: improve subscription state handling
fix: handle string timestamp in DiscountOfferInputIOS
chore(deps): openiap-apple@1.2.18
fix(ios): corrected transactionReason detection for re-purchased subscriptions by upgrading openiap-apple to `1.2.18` - Fixed an issue where previousl
1.2.18 - Fixed an issue where previously cancelled subscriptions that were purchased again were incorrectly marked as RENEWAL instead of PURCHASE. Now uses Apple's transactionReason from JSON representation for accurate transaction type detection.Accidental release with no changes.
Resolve issue like react-native-iap issue #3054 by upgrading openiap-apple to 1.2.17.
1.2.17.Fixed missing upgrade of openiap-apple module to 1.2.14 in the previous release.
openiap-apple module to 1.2.14 in the previous release.Updated openiap-apple to 1.2.14, improving promotional offer error messages.
openiap-apple to 1.2.14, improving promotional offer error messages.Upgrade openiap-apple module to 1.2.13.
1.2.13.Upgrade openiap-apple module to 1.2.12.
1.2.12.Breaking: fetchProducts() now returns Future > instead of specific typed lists
fetchProducts() now returns Future<List<dynamic>> instead of specific typed lists
final List<Product> products = await iap.fetchProducts(skus: ['id'], type: ProductQueryType.InApp);final List<ProductSubscription> subscriptions = await iap.fetchProducts(skus: ['id'], type: ProductQueryType.Subs);.value or .products gettersFetchProductsResultAdd missing isEligibleForIntroOfferIOS method (Fixes #574)
isEligibleForIntroOfferIOS method (Fixes #574)Breaking: Removed deprecated iOS-specific methods
presentExternalPurchaseLinkIOS()userChoiceBillingAndroid for Android User Choice BillingcheckAlternativeBillingAvailabilityAndroid(), showAlternativeBillingDialogAndroid(), createAlternativeBillingTokenAndroid()fetchProducts() now uses named parameters instead of ProductRequest objectgetAvailablePurchases() now uses named parameters instead of PurchaseOptions objectfinishTransaction() simplified to accept Purchase object directlyvalidateReceiptIOS(), deepLinkToSubscriptions() now use named parametersRequestPurchaseProps.inApp() / .subs() factory methods removed (use constructor with type parameter)getAvailableItemsIOS() - Use getAvailablePurchases() insteadgetAppTransactionTypedIOS() - Use getAppTransactionIOS() insteadgetPurchaseHistoriesIOS() - Use getAvailablePurchases() with options instead_buildIosPurchasePayload to public utils for better code organizationNothing published for this version
Update OpenIAP google module to 1.2.10
1.2.10- Update readme
feat: fetchProducts with ProductQueryType.All #568
fix(android): openiap module version path
- fix(ios): Resolve #567
fix(ios): send error only once - prevent duplicate purchase error events on iOS
Full Changelog: https://github.com/hyochan/flutter_inapp_purchase/compare/6.8.2...6.8.3
fix: resolve type casting error with PurchaseOptions by @hyochan in
Full Changelog: https://github.com/hyochan/flutter_inapp_purchase/compare/6.8.1...6.8.2
chore(deps): openiap-apple@1.2.3 #562
migrate Flutter In-App Purchase fully into the OpenIAP ecosystem, aligning with openiap-apple@1.2.2, openiap-google@1.2.6, and openiap-gql@1.0.8.
openiap-apple@1.2.2, openiap-google@1.2.6, and openiap-gql@1.0.8.fetchProducts(ProductRequest(...)) with typed helpers and extend getAvailablePurchases() via PurchaseOptions; legacy getProducts, getSubscriptions, and getPurchaseHistories are removed.purchaseToken as the canonical receipt for server validation.refactor: align openiap-gql@1.0.6
openiap-google@1.1.12Follow-up fixes & refinements for 6.7.0
fix(android): honor subscription offerToken
openiap-google@1.1.11openiap-apple@1.1.12refactor: locally suppress legacy jwsRepresentation mapping and deprecated requestPurchase calls kept for backward compatibility.
product.id is always populated in fetchProducts() (fixes cases where id was empty on iOS). The parser now resolves id from the first non-empty of: productId → id → sku → productIdentifier (#550). In debug builds, logs which key was used.
withOpacity in example UI.PurchaseIOS (use super.expirationDateIOS).jwsRepresentation mapping and deprecated requestPurchase calls kept for backward compatibility.id is the primary identifier for Product/ProductSubscription. productId is kept for backward compatibility only (see Deprecated).fetchProducts(): Adds support for type: 'all'.
'all' through the native fetchProducts callinapp and subs, then merges resultsproductId on ProductCommon: Use id instead (will be removed in 6.6.0).Subscription type name: Use ProductSubscription instead (will be removed in 6.6.0). The alias keeps existing code working.ProductSubscription (alias of Subscription) for subscriptions internally.PurchasedItem → Purchase in current docs/examples.Android: Migrated native billing to openiap-google and simplified plugin with coroutines and connection gating.
fetchProducts() → use fetchProducts()purchaseAsync() → use requestPurchase()requestPurchaseAuto() → use requestPurchase()finalize() → use endConnection()deepLinkToSubscriptionsAndroid() → use platform UI links as documentedgetPurchaseHistories() → use getAvailablePurchases(PurchaseOptions(onlyIncludeActiveItemsIOS: false))Nothing published for this version
Recommend upgrading to 6.5.2. Prior 6.5.0–6.5.1 allowed older constraints; this release enforces exact 1.1.9 for stability. No breaking changes.
type 'double' is not a subtype of type 'String?'), fixes #547.openiap 1.1.9 (exact version) to avoid unexpected CocoaPods minor updates.iOS: bump OpenIAP Apple native module to openiap ~> 1.1.8 (no breaking changes)
openiap ~> 1.1.8 (no breaking changes)OpenIapError.defaultMessage (OpenIAP 1.1.8 consolidation)1.1.8; run cd example/ios && pod install to refresh lockfile.iOS: Retrieve expired subscriptions in StoreKit 2 sandbox
PurchaseOptions parameter to getAvailablePurchases() for OpenIAP complianceonlyIncludeActiveItemsIOS: false to include expired subscriptionsgetPurchaseHistories() → Use getAvailablePurchases() with options (removed in 6.6.0)BREAKING: Updated getAvailablePurchases() to support PurchaseOptions parameter (OpenIAP compliant)
getAvailablePurchases() to support PurchaseOptions parameter (OpenIAP compliant)
PurchaseOptions parameter for platform-specific configurationonlyIncludeActiveItemsIOS option (default: true) to control whether expired subscriptions are includedPurchaseOptions class with iOS-specific options:
alsoPublishToEventListenerIOS: Whether to also publish purchase events to the event listener when fetching available purchasesonlyIncludeActiveItemsIOS: Whether to only include active items (set to false to get expired subscriptions)getPurchaseHistoriesIOS() platform-specific method that retrieves all transactions including expired subscriptionsgetPurchaseHistories() - Use getAvailablePurchases(PurchaseOptions(onlyIncludeActiveItemsIOS: false)) instead (will be removed in 6.6.0)Transaction.all instead of Transaction.currentEntitlementsOne column per quarter.