in_app_purchase
3.3.1, released 2 months ago by flutter.dev
Flutter plugin for making in-app purchases through the App Store and Google Play.
What it does
Provides a storefront-independent API to show available in-app products, load owned products, and purchase consumables, non-consumables, and subscriptions across Android, iOS, and macOS.
AI-written summary of version 3.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to sell digital goods or subscriptions inside your mobile or desktop app.
- You want a unified API targeting both Google Play Billing and Apple App Store (StoreKit 1 & 2).
Skip it when
- You are processing physical goods or general payment gateway transactions via web or external credit cards.
- You do not want to configure store-specific items and developer accounts on Google Play and App Store.
Strengths
- Unified interface across Android, iOS, and macOS.
- Supports subscriptions, consumables, and non-consumables.
- Stream-based architecture for listening to purchase updates.
Weaknesses
- Requires platform-specific configuration and store setup.
- Consumable restoration must be handled manually via a custom backend.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 3
Requires configuring products in Google Play Console and App Store Connect, setting up appropriate app signing/permissions, and handling native store SDK requirements.
final bool available = await InAppPurchase.instance.isAvailable();
const productIds = <String>{'product1', 'product2'};
final ProductDetailsResponse response = await InAppPurchase.instance.queryProductDetails(productIds);Alternatives
Packages that do the same job and could replace in_app_purchase.
- purchases_flutter
Flutter plugin for RevenueCat in‑app purchases and subscriptions across iOS, Android, web and macOS.
93Compare - pay
Integrate Apple Pay on iOS and Google Pay on Android with ready-made buttons.
92Compare - myket_iap
Myket In-App Purchase plugin for Android applications.
70Compare - in_app_update_flutter
Prompt users for in-app updates using StoreKit on iOS and Play Core API on Android.
86Compare
Works with
Packages commonly used together with in_app_purchase: ones it builds on, ones built on it, and its own family.