πŸ›οΈ 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

MIT License.


"Buy Me A Coffee"

Made with ❀️ by minhto28

Libraries

iap_quick