flutter_in_app_purchase_helper 0.0.6 copy "flutter_in_app_purchase_helper: ^0.0.6" to clipboard
flutter_in_app_purchase_helper: ^0.0.6 copied to clipboard

Flutter In-App Purchase Helper provides a easy solution for integrating in-app purchases into apps.

Flutter In-App Purchase Helper #

Overview #

Flutter In-App Purchase Helper provides a streamlined solution for integrating in-app purchases into Flutter applications. This document outlines how to set up and use the helper effectively.

Features #

  1. Initialize in-app purchases with dynamic product IDs.
  2. Fetch available products from the app store.
  3. Handle purchase flows and verify transactions.
  4. Easy-to-use interface for integrating in-app purchases into any Flutter widget.

How to Use #

  • Initialization (initState): Initializes FlutterInAppPurchaseHelper with context and sets up product IDs and callbacks for success and error handling.

    Initialization Example Initialization Example

  • Plan Selection (_togglePlanSelection): Handles selection/deselection of plans.

    Plan Selection Example

  • Fetching and Showing Products (fetchAndShowProducts): Retrieves product information from the store using FlutterInAppPurchaseHelper and displays them in the UI, ensuring accurate pricing and details.

    Fetching Products Example

  • Purchase Button: Triggers purchase through _inAppPurchaseHelper.buyProduct function when a plan is selected and handles errors based on the purchase.

    Purchase Button Example

5
likes
140
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter In-App Purchase Helper provides a easy solution for integrating in-app purchases into apps.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter, in_app_purchase

More

Packages that depend on flutter_in_app_purchase_helper