Skip to content
pubscout

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.

WASM-ready
$ flutter pub add purchases_dart
Source repository

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.

  • adapty_flutter

    If you prefer using Adapty as an alternative subscription management platform.

Works with

Packages commonly used together with purchases_dart: ones it builds on, ones built on it, and its own family.