userCanPay method

  1. @override
Future<bool> userCanPay(
  1. PaymentConfiguration paymentConfiguration
)
override

Determines whether a user can pay with the provider in the configuration.

Completes with a PlatformException if the native call fails or otherwise returns a boolean for the paymentConfiguration specified.

Implementation

@override
Future<bool> userCanPay(PaymentConfiguration paymentConfiguration) async {
  return await _channel.invokeMethod(
          'userCanPay', jsonEncode(await paymentConfiguration.parameterMap()))
      as bool;
}