awaitCanMakePayments
suspend fun <Error class: unknown class>.awaitCanMakePayments(context: Context, features: List<BillingFeature> = listOf()): Boolean
Note: This method only works for the Google Play Store. There is no Amazon equivalent at this time. Calling from an Amazon-configured app will return true.
Check if billing is supported for the current Play user (meaning IN-APP purchases are supported) and optionally, whether all features in the list of specified feature types are supported. This method is asynchronous since it requires a connected BillingClient.
Return
the result of the check
Parameters
context
A context object that will be used to connect to the billing client
features
A list of feature types to check for support. Feature types must be one of BillingFeature By default, is an empty list and no specific feature support will be checked.