flutter_inapp_purchase 6.0.0-rc.1 copy "flutter_inapp_purchase: ^6.0.0-rc.1" to clipboard
flutter_inapp_purchase: ^6.0.0-rc.1 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 #

Pub Version Flutter CI Coverage Status License

A comprehensive Flutter plugin for implementing in-app purchases on iOS and Android platforms.

πŸš€ Key Features #

  • Cross-platform: Works seamlessly on both iOS and Android
  • StoreKit 2 Support: Full StoreKit 2 support for iOS 15.0+ with automatic fallback
  • Billing Client v8: Latest Android Billing Client features
  • Type-safe: Complete TypeScript-like support with Dart strong typing
  • Comprehensive Error Handling: Detailed error codes and user-friendly messages
  • Subscription Management: Advanced subscription handling and validation
  • Receipt Validation: Built-in receipt validation for both platforms

πŸ“¦ Installation #

Add to your pubspec.yaml:

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,
);

πŸ“š Documentation #

For comprehensive documentation, guides, API reference, and examples, visit:

🌐 flutter-inapp-purchase.hyo.dev

🎯 Platform Support #

Feature iOS Android
Products & Subscriptions βœ… βœ…
Purchase Flow βœ… βœ…
Receipt Validation βœ… βœ…
Subscription Management βœ… βœ…
Promotional Offers βœ… N/A
StoreKit 2 βœ… N/A
Billing Client v8 N/A βœ…

🚨 Breaking Changes in v6.0.0-rc.1 #

⚠️ This is a release candidate with significant breaking changes

  • ErrorCode enum values changed to lowerCamelCase (e.g., E_USER_CANCELLED β†’ eUserCancelled)
  • Channel access changed from static to instance member
  • Platform-specific code now uses mixin architecture

See the Migration Guide for detailed upgrade instructions.

🀝 Community & Support #

πŸ”§ ProGuard Configuration #

If you have enabled ProGuard, add these rules to your proguard-rules.pro:

# In app Purchase
-keep class com.amazon.** {*;}
-keep class dev.hyo.** { *; }
-keep class com.android.vending.billing.**
-dontwarn com.amazon.**
-keepattributes *Annotation*

πŸ“„ License #

MIT License - see LICENSE file for details.

β˜• Support #

If this plugin helps you, consider buying me a coffee:

Paypal Buy Me A Coffee

430
likes
0
points
9.09k
downloads

Publisher

verified publisherdooboolab.com

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_hooks, http, meta, platform

More

Packages that depend on flutter_inapp_purchase

Packages that implement flutter_inapp_purchase