presentCardPaymentFlow method

  1. @override
Future<PaymentResult> presentCardPaymentFlow(
  1. BaseSession session, {
  2. List<CardBrand>? supportedBrands,
})
override

Implementation

@override
Future<PaymentResult> presentCardPaymentFlow(
  BaseSession session, {
  List<CardBrand>? supportedBrands,
}) async {
  final result = await methodChannel.invokeMethod('presentCardPaymentFlow', {
    'session': session.toJson(),
    if (supportedBrands != null && supportedBrands.isNotEmpty)
      'supportedBrands': supportedBrands.map((b) => b.value).toList(),
  });
  return parsePaymentResult(result);
}