isGooglePayAvailable method
Checks whether a Google Pay is available on this device and can process payment requests using Cloudpayments 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;
}