flutter_amazon_iap 0.0.1 copy "flutter_amazon_iap: ^0.0.1" to clipboard
flutter_amazon_iap: ^0.0.1 copied to clipboard

discontinued
PlatformAndroid

Amazon In-app purchase for Flutter use Amazon AppStore SDK

Flutter Amazon Iap #

Amazon In-app purchase for Flutter use Amazon AppStore SDK

Setup #

Follow Amazon's instructions to configure the Appstore SDK with your public key: https://developer.amazon.com/docs/in-app-purchasing/integrate-appstore-sdk.html#configure_key

Before using the plugin, you must call:

FlutterAmazonIapPlugin.instance.initialize()

Usage #

As this is a wrapper around the methods exposed by the Amazon Appstore SDK, the user should read Amazon's documentation. Calls to the Appstore SDK are in the form of function calls, while the responses are delivered as events to the provided streams. https://developer.amazon.com/docs/in-app-purchasing/iap-implement-iap.html

Functions #

  • getUserData().
  • getPurchaseUpdates().
  • getProductData(List
  • purchase(String sku)
  • notifyFulfillment(String receiptId)

Event streams #

  • userDataResponse
FlutterAmazonIapPlugin.userDataResponse?.listen((event) {
  print(event);
});
  • purchaseUpdatesResponse
FlutterAmazonIapPlugin.purchaseUpdatesResponse?.listen((event) {
  print(event);
});
  • productResponse
FlutterAmazonIapPlugin.productResponse?.listen((event) {
  print(event);
});
  • purchaseResponse
FlutterAmazonIapPlugin.purchaseResponse?.listen((event) {
  print(event);
})

Note #

If obfuscating the app, the following steps should be taken: https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html

0
likes
140
points
25
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Amazon In-app purchase for Flutter use Amazon AppStore SDK

Homepage

License

Apache-2.0 (license)

Dependencies

flutter, freezed_annotation, json_annotation, plugin_platform_interface

More

Packages that depend on flutter_amazon_iap

Packages that implement flutter_amazon_iap