iap_quick 0.0.1
iap_quick: ^0.0.1 copied to clipboard
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 experi [...]
ποΈ 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 products = await iap.getProducts(ids: {'id1,id2,id3'}, notFoundIDs: (ids) {});
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();
π Detailed Guide #
Check the full documentation at Wiki.
π― Contribution #
Feel free to open an issue or submit a pull request to improve this plugin!
π License #
MIT License.