isApplePayAvailable method

Future<bool> isApplePayAvailable()

Checks whether an Apple Pay is available on this device and can process payment requests using Cloudpayments payment network brands (Visa and Mastercard).

Implementation

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