ποΈ Easy In-App Purchase Plugin for Flutter
π Introduction
This plugin makes integrating In-App Purchase in your Flutter app easy and fast. With a simple API, multi-platform support, and secure payment processing, this plugin lets you focus on user experience without worrying about complex technical issues.
β¨ Key Features
- β Supports Google Play & App Store
- π§ Quick integration, just a few lines of code
- π Secure payment processing, with automatic transaction verification
- π Supports subscriptions & one-time purchases
- π‘ Real-time transaction status updates
π¦ Installation
Add this to your pubspec.yaml
:
dependencies:
iap_quick: latest_version
Then run:
flutter pub get
π Usage
Initialize IAP
final iap = IAPQuick();
final available = await iap.isAvailable();
Fetch Products
final response = await iap.getProducts(ids: {'id1,id2,id3'});
Restore Purchases
await iap.restorePurchases();
Purchase Products
Buy a Consumable Product
await iap.buyConsumable(productDetails);
Buy a Non-Consumable Product
await iap.buyNonConsumable(productDetails);
Listen to Purchase Updates
iap.listen(
onData: (List<PurchaseDetails> purchases) {},
onDone: () {},
onError: () {},
cancelOnError: true);
Dispose IAP Instance
await iap.dispose();
π€ Contribute
We welcome community contributions. Feel free to submit pull requests or report issues.
π Issues and Feedback
Please file an issue to send feedback or report a bug. Thank you!
π License
Made with β€οΈ by minhto28