isPayed static method

Future<bool> isPayed(
  1. String packageName
)

Check if any application is payed into apklis

Implementation

static Future<bool> isPayed(String packageName) async {
  final Map? map = await (channel.invokeMapMethod('isPurchased', packageName));

  if (map != null) {
    if(map['paid'] != null && map['username'] != null) {
      return map['paid'];
    }
  }

  return false;
}