inapp_purchase_wrapper 1.1.5 copy "inapp_purchase_wrapper: ^1.1.5" to clipboard
inapp_purchase_wrapper: ^1.1.5 copied to clipboard

A comprehensive wrapper for Flutter's in_app_purchase plugin that simplifies cross-platform (Android/iOS) in-app purchases with unified APIs for product purchasing, verification, and order management.

inapp_purchase_wrapper #

A comprehensive wrapper for Flutter's in_app_purchase plugin that simplifies cross-platform ( Android/iOS) in-app purchases with unified APIs for product purchasing, verification, and order management.

notice:

  • Consumable Products Only: Currently only supports consumable in-app products, subscriptions are not supported yet
  • iOS Flow Unverified: iOS implementation flow has not been fully validated yet

Features #

  • Cross-platform Support: Unified API for both Android and iOS in-app purchases
  • Automatic Platform Detection: Handles Google Play and App Store automatically
  • Simple Purchase Flow: Easy product purchasing with startPurchase method
  • Purchase Verification: Built-in purchase validation and verification
  • Order Management: Local storage and management of order data
  • Purchase Restoration: Support for restoring previous purchases
  • Event Listeners: Complete payment callback handling (pending, success, canceled, error)
  • Custom Logging: Configurable logging for purchase events
  • Error Handling: Comprehensive error management and reporting

Installation #

Add the dependency in pubspec.yaml:

dependencies:
  inapp_purchase_wrapper: ^1.0.2

Then run:

flutter pub get

Usage #

Please check the example.

License #

The project is under the MIT license.

0
likes
90
points
47
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A comprehensive wrapper for Flutter's in_app_purchase plugin that simplifies cross-platform (Android/iOS) in-app purchases with unified APIs for product purchasing, verification, and order management.

Repository (GitHub)

License

MIT (license)

Dependencies

in_app_purchase, in_app_purchase_android, in_app_purchase_storekit, uuid

More

Packages that depend on inapp_purchase_wrapper