flutter_inapp_purchase 6.0.0-rc.3
flutter_inapp_purchase: ^6.0.0-rc.3 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 #
A comprehensive Flutter plugin for implementing in-app purchases on iOS and Android platforms.
π Documentation #
For comprehensive documentation, installation guides, API reference, and examples, visit:
π flutter-inapp-purchase.hyo.dev
π¦ Installation #
dependencies:
flutter_inapp_purchase: ^6.0.0-rc.1
π§ Quick Start #
import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart';
// Initialize connection
await FlutterInappPurchase.instance.initConnection();
// Get products
final products = await FlutterInappPurchase.instance.getProducts(['product_id']);
// Request purchase
await FlutterInappPurchase.instance.requestPurchase(
RequestPurchase(
ios: RequestPurchaseIosProps(sku: 'product_id'),
android: RequestPurchaseAndroidProps(skus: ['product_id']),
),
PurchaseType.inapp,
);
π License #
MIT License - see LICENSE file for details.