flutter_inapp_purchase 8.2.8 copy "flutter_inapp_purchase: ^8.2.8" to clipboard
flutter_inapp_purchase: ^8.2.8 copied to clipboard

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.

flutter_inapp_purchase #

flutter_inapp_purchase logo

Pub Version Flutter CI OpenIAP Coverage Status License

A comprehensive Flutter plugin for implementing in-app purchases that conforms to the Open IAP specification

Open IAP

📚 Documentation #

📖 Visit our comprehensive documentation site →

📦 Installation #

dependencies:
  flutter_inapp_purchase: ^8.0.0

🔧 Quick Start #

Basic Usage #

import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart';

// Create instance
final iap = FlutterInappPurchase();

// Initialize connection
await iap.initConnection();

// Fetch products with explicit type
final products = await iap.fetchProducts<Product>(
  skus: ['product_id'],
  type: ProductQueryType.InApp,
);

// Request purchase (builder DSL)
await iap.requestPurchaseWithBuilder(
  build: (builder) {
    builder
      ..type = ProductQueryType.InApp
      ..android.skus = ['product_id']
      ..ios.sku = 'product_id';
  },
);

Using with AI Assistants #

flutter_inapp_purchase provides AI-friendly documentation for Cursor, GitHub Copilot, Claude, and ChatGPT.

AI Assistants Guide

Quick links:

Development #

See CONTRIBUTING.md for development setup and guidelines.

Singleton Usage #

For global state management or when you need a shared instance:

// Use singleton instance
final iap = FlutterInappPurchase.instance;
await iap.initConnection();

// The instance is shared across your app
final sameIap = FlutterInappPurchase.instance; // Same instance

Sponsors #

💼 View Our Sponsors

📄 License #

MIT License - see LICENSE file for details.

439
likes
130
points
4k
downloads

Documentation

API reference

Publisher

verified publisherhyo.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter, http, meta, platform

More

Packages that depend on flutter_inapp_purchase

Packages that implement flutter_inapp_purchase