isGooglePayAvailable method

Future<bool> isGooglePayAvailable()

Checks whether a Google Pay is available on this device and can process payment requests using TipTopPay payment network brands (Visa and Mastercard).

Implementation

Future<bool> isGooglePayAvailable() async {
  if (Platform.isAndroid) {
    try {
      final available = await _channel.invokeMethod('isGooglePayAvailable');
      return available;
    } on PlatformException catch (_) {
      return false;
    }
  }
  return false;
}