confirmWithLastUsedPaymentMethod method

  1. @override
Future<Map<String, dynamic>?> confirmWithLastUsedPaymentMethod()
override

Confirm with Customer Last Used Payment Methods.

Throws an UnimplementedError if the method is not implemented.

Implementation

@override
Future<Map<String, dynamic>?> confirmWithLastUsedPaymentMethod() async {
  final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
      'confirmWithCustomerLastUsedPaymentMethod');
  if (result != null) {
    final Map<String, dynamic> resultMap = Map<String, dynamic>.from(result);
    return resultMap;
  }
  return null;
}