tree: e76d80098724d921589d24413ed0c9992b646518 [path history] [tgz]
  1. app_store_connection.dart
  2. google_play_connection.dart
  3. in_app_purchase_connection.dart
  4. product_details.dart
  5. purchase_details.dart
  6. README.md
packages/in_app_purchase/lib/src/in_app_purchase/README.md

in_app_purchase

A simplified, generic API for handling in app purchases with a single code base.

You can use this to:

  • Display a list of products for sale from App Store (on iOS) or Google Play (on Android)
  • Purchase a product. From the App Store this supports consumables, non-consumables, and subscriptions. From Google Play this supports both in app purchases and subscriptions.
  • Load previously purchased products, to the extent that this is supported in both underlying platforms.

This can be used in addition to or as an alternative to billing_client_wrappers and store_kit_wrappers.

InAppPurchaseConnection tries to be as platform agnostic as possible, but in some cases differentiating between the underlying platforms is unavoidable.

You can see a sample usage of this in the example app.