canMakePayments static method
Check if billing is supported for the current user (meaning IN-APP purchases are supported) and optionally, whether a list of specified feature types are supported.
Note: BillingFeatures are only relevant to Google Play users.
For other stores, BillingFeatures won't be checked.
features
An optional list of BillingFeatures to check for support.
By default, is an empty list and no feature support will be checked.
Implementation
static Future<bool> canMakePayments([
List<BillingFeature> features = const [],
]) async {
final result = await _channel.invokeMethod(
'canMakePayments',
{'features': features.map((e) => e.index).toList()},
) as bool;
return result;
}