storekit2helper

Creator: coderz1093

Last updated:

0 purchases

storekit2helper Image
storekit2helper Images

Languages

Categories

Add to Cart

Description:

storekit2helper

storekit2 #
A new Flutter plugin project.
Getting Started #
This project is IOS Storekit 2 implementation.
USAGE #

// get products
var products = await Storekit2Helper.fetchProducts(
["app_weekly", "app_yearly", "app_lifetime"]);

for (var p in products) {
print(p.productId +
" - " +
p.periodUnit +
" " +
p.periodValue.toString() +
" " +
p.type);
}

// check user has active subscription
var hasActiveSubscription = await Storekit2Helper.hasActiveSubscription();

// Buy product by product id
Storekit2Helper.buyProduct("app_weekly",
(success, transaction, errorMessage) {
print(success);
print(errorMessage);
print(transaction);
});


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.