presentCardPaymentFlow method

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

Presents the card-only payment sheet. Use this when the merchant wants to restrict checkout to card payments and skip the payment-method selection screen.

@param session - The payment session describing the intent, amount, currency, and customer. @param supportedBrands - Optional list of card brands to accept. When null, all supported brands are accepted. @returns The result of the payment attempt.

Implementation

Future<PaymentResult> presentCardPaymentFlow(
  BaseSession session, {
  List<CardBrand>? supportedBrands,
}) {
  return AirwallexPaymentFlutterPlatform.instance
      .presentCardPaymentFlow(session, supportedBrands: supportedBrands);
}