isAvailable method

Future<bool> isAvailable()

Returns true if the Amazon Pay plugin is available on this device.

Implementation

Future<bool> isAvailable() async {
  try {
    final result = await _channel.invokeMethod('isAmazonPayAvailable');
    return result == true;
  } catch (_) {
    return false;
  }
}