flutter_inapp_purchase 6.3.0 copy "flutter_inapp_purchase: ^6.3.0" to clipboard
flutter_inapp_purchase: ^6.3.0 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 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: ^6.3.0

πŸ”„ What's New in 6.3.0 #

πŸ“ Read the full release blog post

Version 6.3.0 brings critical bug fixes, enhanced OpenIAP compliance, and improved test coverage while maintaining full backward compatibility.

πŸ”§ Quick Start #

Basic Usage #

import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart';

// Create instance
final iap = FlutterInappPurchase();

// Initialize connection
await iap.initConnection();

// Get products (using the new unified API)
final products = await iap.requestProducts(
  RequestProductsParams(
    productIds: ['product_id'],
    type: PurchaseType.inapp,
  ),
);

// Request purchase
await iap.requestPurchase(
  request: RequestPurchase(
    ios: RequestPurchaseIOS(sku: 'product_id'),
    android: RequestPurchaseAndroid(skus: ['product_id']),
  ),
  type: PurchaseType.inapp,
);

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.

430
likes
0
points
9.09k
downloads

Publisher

verified publisherdooboolab.com

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.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, meta, platform

More

Packages that depend on flutter_inapp_purchase

Packages that implement flutter_inapp_purchase