Skip to content

minhto2811/iap_quick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛍️ 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published