flutter_in_app_billing 0.0.1
flutter_in_app_billing: ^0.0.1 copied to clipboard

A Flutter Plugin for google play in app billing

flutter_in_app_billing #

A Flutter Plugin for google play in app billing

Getting Started #

Add this on your app dependencies

    implementation 'com.anjlab.android.iab.v3:library:1.0.44'

Init #

Init billing processor before any operation begins

licenseKey your google play license key


  void main() async {
    FlutterInAppBilling.initBp(yourlicenseKey);
    runApp(MyApp());
}

Check purchase/subscribe #

productId your google play product id

check if the user had purchased/subscribed

  FlutterInAppBilling.checkPurchase(productId);
  FlutterInAppBilling.checkSubscription(productId);

Purchase/Subscribe #

  FlutterInAppBilling.purchase(productId);
  FlutterInAppBilling.subscribe(productId);

Get Purchase Info #

  FlutterInAppBilling.getPurchaseInfo(productId);
1
likes
80
pub points
9%
popularity

A Flutter Plugin for google play in app billing

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

a954723219@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_in_app_billing