flutter_in_app_billing

Last updated:

0 purchases

flutter_in_app_billing Image
flutter_in_app_billing Images
Add to Cart

Description:

flutter 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'
copied to clipboard
Init #
Init billing processor before any operation begins
licenseKey your google play license key

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

copied to clipboard
Check purchase/subscribe #
productId your google play product id
check if the user had purchased/subscribed
FlutterInAppBilling.checkPurchase(productId);
FlutterInAppBilling.checkSubscription(productId);
copied to clipboard
Purchase/Subscribe #
FlutterInAppBilling.purchase(productId);
FlutterInAppBilling.subscribe(productId);

copied to clipboard
Get Purchase Info #
FlutterInAppBilling.getPurchaseInfo(productId);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.