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 8 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.
Android: Fixed FormatException when calling finishTransaction
Expo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
npx expo install expo-iap@6.4.3
# or
bun add expo-iap@6.4.3Your coding agent can read these notes before it upgrades. Set up the MCP server →
expirationDateIOS and revocationDateIOS to use millisecond timestampsRemoved parsing of deprecated subscriptionOfferDetails field
subscriptionOfferDetailsAndroid field returning null (Fixes #534)
subscriptionOfferDetailsAndroid in subscription productssubscriptionOfferDetails fieldMap<dynamic, dynamic> inputsas Map<String, dynamic> casts in types.dartExpo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
30ef2786)5db82f74)npx expo install expo-iap@6.4.1
# or
bun add expo-iap@6.4.1ActiveSubscription type for subscription APIs to provide better type safety and clearer subscription status information (#532)
getActiveSubscriptions() now returns List<ActiveSubscription> instead of List<SubscriptionPurchase>willExpireSoon and daysUntilExpirationIOSExpo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
239eed52)25a0675e)npx expo install expo-iap@6.4.0
# or
bun add expo-iap@6.4.0Simplified fetchProducts API: The fetchProducts method now accepts direct parameters instead of a wrapper object (Fixes #527)
// Before (6.3.x)
final products = await iap.fetchProducts(
RequestProductsParams(
skus: ['product_id'],
type: PurchaseType.inapp,
),
);
// After (6.4.0)
final products = await iap.fetchProducts(
skus: ['product_id'],
type: PurchaseType.inapp, // Optional, defaults to PurchaseType.inapp
);
RequestProductsParams classDSL-like Builder Pattern for Purchase Requests: Added a builder pattern API for more intuitive and type-safe purchase request construction
// New builder pattern approach
await iap.requestPurchaseWithBuilder(
build: (r) => r
..type = PurchaseType.inapp
..withIOS((i) => i
..sku = 'product_id'
..quantity = 1)
..withAndroid((a) => a
..skus = ['product_id']),
);
AndroidPurchaseState enum instead of hardcoded values (0, 1, 2)
The following deprecated items from v6.3.x have been removed in v6.4.0:
subscriptionOfferDetails field (use subscriptionOfferDetailsAndroid instead)prorationMode field (use replacementModeAndroid instead)AndroidProrationMode typedef (use AndroidReplacementMode instead)We understand there have been several breaking changes recently. We sincerely apologize for any inconvenience. These changes are part of our effort to quickly address the long maintenance gap and bring the library up to modern standards. With version 6.4.0, we believe the major restructuring is now complete, and the API should remain stable going forward.
Added comprehensive TODO comments for v6.4.0 deprecation cleanup
nameAndroid and oneTimePurchaseOfferDetailsAndroid fieldsdataAndroid field mapping from native Android data_platform.isAndroid and _platform.isIOS conditions for platform-specific fieldsiOS Purchase State Detection: Enhanced purchase state detection for iOS
transactionStateIOS is nullkDebugMode flagTest Product Cleanup: Removed deprecated android.test.purchased test product ID
_Map<String, dynamic> type casting issue that prevented subscriptions from loadingandroid.test.purchased test product ID
Expo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
35675d43)npx expo install expo-iap@6.3.0
# or
bun add expo-iap@6.3.0PurchaseState.unspecifiedEnhanced OpenIAP Compliance: Extended OpenIAP specification support with comprehensive field mapping
displayName, displayPrice, isFamilyShareable, jsonRepresentation, discountsIOS, subscription info, and promotional offer fieldsoriginalPrice, originalPriceAmount, freeTrialPeriod, subscriptionOffersAndroid, and billing cycle informationverificationResultIOS, environmentIOS, expirationDateIOS, revocationDateIOS, and transaction metadataImproved Test Organization: Restructured test suite by business flows
Type Safety: Enhanced type casting and JSON parsing reliability
Map<Object?, Object?> to Map<String, dynamic> conversion issuesSubscription Management: Enhanced active subscription detection
Code Quality: Comprehensive test suite improvements
fetchProducts with PurchaseType.subs returned empty arrays
getItems method instead of unsupported getSubscriptionsNone - This version maintains full backward compatibility while extending functionality.
Deprecated platform-specific token fields in favor of unified approach
id field to Purchase class for standardized transaction identificationpurchaseToken field for cross-platform server validation
finishTransaction now accepts Purchase objects directlytransactionId and id fields in Android purchase responsesPurchase.fromJson()None - This version maintains backward compatibility.
API Cleanup: Removed all deprecated methods that were marked for removal in 6.0.0
initialize() - use initConnection() insteadcheckSubscribed() - implement custom logic with getAvailablePurchases()showInAppMessageAndroid() - no longer supportedmanageSubscription() - use deepLinkToSubscriptionsAndroid() insteadopenPlayStoreSubscriptions() - use deepLinkToSubscriptionsAndroid() insteadclearTransactionIOS() - no longer neededshowPromoCodesIOS() - use presentCodeRedemptionSheetIOS() insteadgetPromotedProductIOS() and requestPromotedProductIOS() - use standard purchase flowrequestProductWithOfferIOS() and requestPurchaseWithQuantityIOS() - use requestPurchase() with RequestPurchase objectconsumePurchaseAndroidLegacy() and validateReceiptAndroidLegacy() - use modern equivalentsdeepLinkToSubscriptionsAndroidLegacy() - use deepLinkToSubscriptionsAndroid()acknowledgePurchaseAndroid() - use finishTransaction() instead_requestPurchaseOld() internal methodIf you're upgrading from 6.0.x and were using any deprecated methods:
initialize() with initConnection()acknowledgePurchaseAndroid() with finishTransaction()requestPurchase() with proper RequestPurchase objects instead of platform-specific methodspresentCodeRedemptionSheetIOS() for promo codes on iOSExpo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
npx expo install expo-iap@6.0.2
# or
bun add expo-iap@6.0.2signatureAndroid field in purchase conversion
signatureAndroid and other Android-specific fields to the Purchase objectExpo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
f6d077f6)502ca627)npx expo install expo-iap@6.0.1
# or
bun add expo-iap@6.0.1subscriptionPeriodNumberIOS was sent as integer instead of string from native iOS code, causing runtime errors_purchaseUpdatedController → _purchaseUpdatedListener_purchaseErrorListenerController → _purchaseErrorListenerExpo Modules wrapper implementing the OpenIAP Client Protocol.
Expo Modules wrapper implementing the OpenIAP Client Protocol.
1538ab2d)8e9a546b)93bdc6ef)npx expo install expo-iap@6.0.0
# or
bun add expo-iap@6.0.0This major release redesigns the API to fully comply with the Open IAP specification, providing a standardized interface for in-app purchases across platforms.
Open IAP is an open standard for implementing in-app purchases consistently across different platforms and frameworks. By following this specification, flutter_inapp_purchase now offers:
useIap hook and IapProvider - use FlutterInappPurchase.instance directlyflutter_hooks dependencyE_UNKNOWN → Unknown (PascalCase)FlutterInappPurchase.channel → FlutterInappPurchase.instance.channel// Before (5.x)
final iap = useIap();
await iap.initialize();
// After (6.0)
final iap = FlutterInappPurchase.instance;
await iap.initConnection();
For complete migration details, see the documentation.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
fix: removed references to deprecated v1 Android embedding by @moodstubos in
Erroneous duplicate item by @deakjahn in
refactor: android init connection
refactor: android init connection
Used Kotlin apply for cleaner initialization of billingClient.
Introduced context ?: return for null-safety with context.
Merged repetitive code into the updateConnectionStatus method to avoid duplication.
Improved the handling of the alreadyFinished flag to ensure it is only set once and at the appropriate time.
Streamlined the error and success handling for clarity.
Migrate android billingClient to 6.0.1
Expo Modules wrapper for the OpenIAP specification.
Expo Modules wrapper for the OpenIAP specification.
da68e0ac)d4a5871f)59fb640f)3658f021)70864e9e)npx expo install expo-iap@5.5.0
# or
bun add expo-iap@5.5.0Erroneous duplicate item (#441) - Remove extra introductoryPricePaymentModeIOS
Fixed consumable products reading on Android (#439)
chore(deps): migrate internal packages to recent
http: ^1.1.0
meta: ^1.10.0
platform: ^3.1.3
chore: migrate example project to recent flutter version, 3.16.0-0.3.pre
Nothing published for this version
Expo Modules wrapper for the OpenIAP specification.
Expo Modules wrapper for the OpenIAP specification.
cb367a15)0357f7b4)e2349053)npx expo install expo-iap@5.4.1
# or
bun add expo-iap@5.4.1Expo Modules wrapper for the OpenIAP specification.
Expo Modules wrapper for the OpenIAP specification.
ae210cd5)dabed9a7)b335e133)aa250ef6)22b5e437)e7ab6d25)f4e83aec)npx expo install expo-iap@5.4.0
# or
bun add expo-iap@5.4.0expo-iap 5.3.1 Compare # Choose a tag to compare
expo-iap 5.3.1
Compare
Nothing published for this version
Bugfix #356
Bugfix #356
Nothing published for this version
Now three new functions are suggested and marked the old ones deprecated.
Run on UiThread and few others (#328)
Related #272
The main difference is a new MethodResultWrapper class that wraps both the result and the channel. onMethodCall() now immediately saves this wrapped result-channel to a field and only uses that later to set both the result and to send back info on the channel. I did this in both Google and Amazon but I can't test the Amazon one.
Included the plugin registration differences.
Midified suggested in one of the issues that initConnection, endConnection and consumeAllItems shouldn't be accessors. This is very much so, property accessors are not supposed to do work and have side effects, just return a value. Now three new functions are suggested and marked the old ones deprecated.
Fourth, EnumUtil.getValueString() is not really necessary, we have describeEnum() in the Flutter engine just for this purpose.
Upgrade android billing client to 4.0.0
Upgrade android billing client to 4.0.0 (#326)
Remove orderId in Purchase
transactionId.Support for Amazon devices with Google Play sideloaded (#313)
Use http client in validateReceiptIos
getPrice directly withoiut formatting (#316)Fix plugin exception for requestProductWithQuantityIOS #306
requestProductWithQuantityIOS #306Replaced obfuscatedAccountIdAndroid with obfuscatedAccountId in request purchase method #299
Add AndroidProrationMode values #273
- Support null safety #275
Godot 4.x addon implementing the OpenIAP Client Protocol (iOS GDExtension + Android AAR plugin).
Godot 4.x addon implementing the OpenIAP Client Protocol (iOS GDExtension + Android AAR plugin).
Download godot-iap-4.0.2.zip from the Assets section below and extract into your project's addons/ directory, or install via the Godot Asset Library.
Native Android library implementing the OpenIAP Client Protocol (Play + Horizon + Fire OS flavors).
Apply the plugin in settings.gradle.kts and depend on openiap-google: a
connected Quest or Fire device selects its store on a debug build, and
openiapStore pins release builds. The plugin swaps in the store's
artifact, so do not declare a store artifact yourself.
// settings.gradle.kts: the plugin is on Maven Central, not the Gradle Plugin Portal
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("io.github.hyochan.openiap") version "4.0.2"
}
// app/build.gradle.kts
dependencies {
implementation("io.github.hyochan.openiap:openiap-google:4.0.2")
}Depend on the one artifact for your store.
dependencies {
implementation("io.github.hyochan.openiap:openiap-google:4.0.2") // Google Play
// implementation("io.github.hyochan.openiap:openiap-google-horizon:4.0.2") // Meta Horizon
// implementation("io.github.hyochan.openiap:openiap-google-amazon:4.0.2") // Amazon Fire OS
}Kotlin Multiplatform library implementing the OpenIAP Client Protocol (iOS + Android).
Gradle (Kotlin DSL):
dependencies {
implementation("io.github.hyochan:kmp-iap:4.0.2")
}Gradle (Groovy):
dependencies {
implementation 'io.github.hyochan:kmp-iap:4.0.2'
}Native iOS / macOS / tvOS / watchOS / visionOS library implementing the OpenIAP Client Protocol.
Swift Package Manager:
dependencies: [
.package(url: "https://github.com/hyodotdev/openiap.git", from: "4.0.2")
]CocoaPods:
pod 'openiap', '~> 4.0.2'Godot 4.x addon implementing the OpenIAP Client Protocol (iOS GDExtension + Android AAR plugin).
Godot 4.x addon implementing the OpenIAP Client Protocol (iOS GDExtension + Android AAR plugin).
f6d077f6)502ca627)52e94c21)Download godot-iap-4.0.1.zip from the Assets section below and extract into your project's addons/ directory, or install via the Godot Asset Library.
Native Android library implementing the OpenIAP Client Protocol (Play + Horizon + Fire OS flavors).
f6d077f6)502ca627)76999049)Apply the plugin in settings.gradle.kts and depend on openiap-google: a
connected Quest or Fire device selects its store on a debug build, and
openiapStore pins release builds. The plugin swaps in the store's
artifact, so do not declare a store artifact yourself.
// settings.gradle.kts: the plugin is on Maven Central, not the Gradle Plugin Portal
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("io.github.hyochan.openiap") version "4.0.1"
}
// app/build.gradle.kts
dependencies {
implementation("io.github.hyochan.openiap:openiap-google:4.0.1")
}Depend on the one artifact for your store.
dependencies {
implementation("io.github.hyochan.openiap:openiap-google:4.0.1") // Google Play
// implementation("io.github.hyochan.openiap:openiap-google-horizon:4.0.1") // Meta Horizon
// implementation("io.github.hyochan.openiap:openiap-google-amazon:4.0.1") // Amazon Fire OS
}Kotlin Multiplatform library implementing the OpenIAP Client Protocol (iOS + Android).
f6d077f6)502ca627)Gradle (Kotlin DSL):
dependencies {
implementation("io.github.hyochan:kmp-iap:4.0.1")
}Gradle (Groovy):
dependencies {
implementation 'io.github.hyochan:kmp-iap:4.0.1'
}Native iOS / macOS / tvOS / watchOS / visionOS library implementing the OpenIAP Client Protocol.
f6d077f6)502ca627)Swift Package Manager:
dependencies: [
.package(url: "https://github.com/hyodotdev/openiap.git", from: "4.0.1")
]CocoaPods:
pod 'openiap', '~> 4.0.1'Native iOS / macOS / tvOS / watchOS / visionOS library implementing the OpenIAP Client Protocol.
Native iOS / macOS / tvOS / watchOS / visionOS library implementing the OpenIAP Client Protocol.
1538ab2d)93bdc6ef)Swift Package Manager:
dependencies: [
.package(url: "https://github.com/hyodotdev/openiap.git", from: "4.0.0")
]CocoaPods:
pod 'openiap', '~> 4.0.0'Kotlin Multiplatform library implementing the OpenIAP Client Protocol (iOS + Android).
1538ab2d)93bdc6ef)Gradle (Kotlin DSL):
dependencies {
implementation("io.github.hyochan:kmp-iap:4.0.0")
}Gradle (Groovy):
dependencies {
implementation 'io.github.hyochan:kmp-iap:4.0.0'
}Native Android library implementing the OpenIAP Client Protocol (Play + Horizon + Fire OS flavors).
1538ab2d)93bdc6ef)Apply the plugin in settings.gradle.kts and depend on openiap-google: a
connected Quest or Fire device selects its store on a debug build, and
openiapStore pins release builds. The plugin swaps in the store's
artifact, so do not declare a store artifact yourself.
// settings.gradle.kts: the plugin is on Maven Central, not the Gradle Plugin Portal
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("io.github.hyochan.openiap") version "4.0.0"
}
// app/build.gradle.kts
dependencies {
implementation("io.github.hyochan.openiap:openiap-google:4.0.0")
}Depend on the one artifact for your store.
dependencies {
implementation("io.github.hyochan.openiap:openiap-google:4.0.0") // Google Play
// implementation("io.github.hyochan.openiap:openiap-google-horizon:4.0.0") // Meta Horizon
// implementation("io.github.hyochan.openiap:openiap-google-amazon:4.0.0") // Amazon Fire OS
}Godot 4.x addon implementing the OpenIAP Client Protocol (iOS GDExtension + Android AAR plugin).
1538ab2d)93bdc6ef)Download godot-iap-4.0.0.zip from the Assets section below and extract into your project's addons/ directory, or install via the Godot Asset Library.
.NET 10 MAUI / C# 12 library implementing the OpenIAP Client Protocol (iOS + Android + macCatalyst).
.NET 10 MAUI / C# 12 library implementing the OpenIAP Client Protocol (iOS + Android + macCatalyst).
f6d077f6)502ca627)<ItemGroup>
<PackageReference Include="OpenIap.Maui" Version="3.0.1" />
</ItemGroup>Or via the .NET CLI:
dotnet add package OpenIap.Maui --version 3.0.1Native iOS / macOS / tvOS / watchOS / visionOS library for the OpenIAP specification.
43ecc85b)e55720bd)791cd441)98ecc7eb)Swift Package Manager:
dependencies: [
.package(url: "https://github.com/hyodotdev/openiap.git", from: "3.0.1")
]
CocoaPods:
pod 'openiap', '~> 3.0.1'
.NET 10 MAUI / C# 12 library implementing the OpenIAP Client Protocol (iOS + Android + macCatalyst).
.NET 10 MAUI / C# 12 library implementing the OpenIAP Client Protocol (iOS + Android + macCatalyst).
1538ab2d)93bdc6ef)<ItemGroup>
<PackageReference Include="OpenIap.Maui" Version="3.0.0" />
</ItemGroup>Or via the .NET CLI:
dotnet add package OpenIap.Maui --version 3.0.0Native iOS / macOS / tvOS / watchOS / visionOS library for the OpenIAP specification.
Swift Package Manager:
dependencies: [
.package(url: "https://github.com/hyodotdev/openiap.git", from: "3.0.0")
]
CocoaPods:
pod 'openiap', '~> 3.0.0'
2.1.0 from 3.0.0.deveoperId and accountId when requesting purchase or subscription in android.obfuscatedAccountIdAndroid and obfuscatedProfileIdAndroid when requesting purchase or subscription in android.developerPayload in android.purchaseTokenAndroid as an optional parameter to requestPurchase and requestPurchase..NET 10 MAUI / C# 12 library for the OpenIAP specification (iOS + Android + macCatalyst).
.NET 10 MAUI / C# 12 library for the OpenIAP specification (iOS + Android + macCatalyst).
11dbb07e)8cd5909c)1d6b17fb)f51aab31)009e221b)ba0acef6)<ItemGroup>
<PackageReference Include="OpenIap.Maui" Version="2.3.2" />
</ItemGroup>Or via the .NET CLI:
dotnet add package OpenIap.Maui --version 2.3.2Republishing since sourcode seems not merged correctly.
Republishing since sourcode seems not merged correctly.
Bugfix IapItem deserialization #212
Implement endConnection method to declaratively finish observer in iOS.
endConnection method to declaratively finish observer in iOS.addTransactionObserver in IAPPromotionObserver.m for dup observer problems.initConnection for iOS.Fix ios failed purchase handling problem in 11.4+ #176
Fix dart side expression warning #169.
Fix wrong introductory price number of periods #164.
Trigger purchaseUpdated callback when iap purchased #165.
Renamed finishTransactionIOS argument purchaseToken to transactionId.
finishTransactionIOS argument purchaseToken to transactionId.finishTransaction parameter changes to purchasedItem from purchaseToken.
finishTransaction parameter changes to purchasedItem from purchaseToken.2.1.0 from 2.0.3.Nothing published for this version
[bugfix] Fix double call of result reply on connection init #126
[bugfix] Fix plugin throws exceptions with flutter v1.10.7 beta #117
[bugfix] Decode response code for connection updates stream #114
use ConnectionResult as type for connection stream, fix controller creation #112
Nothing published for this version
Nothing published for this version
Properly set return type PurchaseResult of when finishing transaction.
PurchaseResult of when finishing transaction.Seperate long example code to example readme.
example code to example readme.One column per quarter.