purchases_flutter
11.0.4, released yesterday by revenuecat.com
Flutter plugin for RevenueCat in‑app purchases and subscriptions across iOS, Android, web and macOS.
What it does
Wraps StoreKit, Google Play Billing and the RevenueCat backend to simplify in‑app purchase flows. Handles receipt validation, subscription status tracking and provides analytics integration.
AI-written summary of version 11.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need cross‑platform in‑app purchases/subscriptions with server‑side receipt validation
- You are already using or plan to use RevenueCat as your billing backend
- You want a single API for iOS, Android, web and macOS
Skip it when
- You prefer a custom billing solution without a third‑party service
- Your app does not require purchases or subscriptions
- You need offline‑only purchase handling
Strengths
- Cross‑platform (iOS, Android, web, macOS) support
- Built‑in receipt validation and subscription status tracking
- Frequent releases and good support from RevenueCat
Weaknesses
- Locks you into the RevenueCat service
- Adds external dependency and potential app size increase
- Limited to features exposed by RevenueCat
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 2
Add purchases_flutter to pubspec, configure RevenueCat API keys for each platform, ensure native setup (Xcode, Gradle) and required permissions (e.g., billing), optional web configuration.
import 'package:purchases_flutter/purchases_flutter.dart';
Future<void> initRevenueCat() async {
await Purchases.configure(PurchasesConfiguration('public_sdk_key'));
// Now you can query offerings, purchase products, etc.
}Alternatives
Packages that do the same job and could replace purchases_flutter.
- qonversion_flutter
Flutter plugin to implement in-app subscriptions, purchases, and analytics.
80Compare - apphud
Manage auto-renewable subscriptions and in-app purchases without a backend server.
72Compare - in_app_purchase
Flutter plugin for making in-app purchases through the App Store and Google Play.
94Compare - adapty_flutter
Framework for implementing in-app purchases and subscriptions in Flutter apps.
92Compare
Works with
Packages commonly used together with purchases_flutter: ones it builds on, ones built on it, and its own family.
- webpurchases_flutter depends on itLightweight bindings for browser APIs via JS interop
- equatablepurchases_flutter depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- purchases_ui_flutterBuilt on purchases_flutterFlutter plugin for RevenueCat paywalls and customer center UI
- purchases_dartBuilt on purchases_flutterA pure Dart implementation of RevenueCat for in-app purchases and subscriptions with Web Billing.