purchases_dart
2.2.0, released 3 weeks ago by navideck.com
A pure Dart implementation of RevenueCat for in-app purchases and subscriptions with Web Billing.
What it does
Facilitates in-app purchases and subscriptions using Web Billing. It provides APIs to configure the client, retrieve customer info and offerings, get web checkout URLs, and manage virtual currencies.
AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to integrate RevenueCat Web Billing in a Flutter or pure Dart application.
- You need to manage subscriptions and in-app purchases across multiple platforms including web.
Skip it when
- You are using the old Stripe-based configuration, which was removed in version 2.0.0.
- You only need standard native store purchases without Web Billing.
Strengths
- Closely follows native APIs from purchases_flutter.
- Supports cross-platform apps including web, mobile, and desktop.
Weaknesses
- Requires external tools like url_launcher and app_links to handle web checkouts and deep links.
- Web purchases require configuring Web Purchase Links in the RevenueCat Dashboard.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires configuring PurchasesDart with a Web Billing API key and an appUserId, along with setting up Web Purchase Links in the RevenueCat dashboard.
await PurchasesDart.configure(
PurchasesDartConfiguration(
apiKey: WEB_BILLING_API_KEY,
appUserId: "MY_USER_ID",
),
);Alternatives
Packages that do the same job and could replace purchases_dart.
- in_app_purchase
If you want official Flutter support for standard native App Store and Google Play billing instead of RevenueCat Web Billing.
94Compare - adapty_flutter
If you prefer using Adapty as an alternative subscription management platform.
92Compare
Works with
Packages commonly used together with purchases_dart: ones it builds on, ones built on it, and its own family.
- cryptopurchases_dart depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- uuidpurchases_dart depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- shared_preferencespurchases_dart depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- diopurchases_dart depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- purchases_flutterpurchases_dart depends on itFlutter plugin for RevenueCat in‑app purchases and subscriptions across iOS, Android, web and macOS.