presentCardPaymentFlow

Launch the card payment flow to allow the user to complete the entire payment flow

Parameters

activity

the launch activity on which the payment UI is presented

session

a AirwallexSession used to present the payment flow

configuration

Configuration for the card payment element

paymentResultListener

The callback of present entire payment flow


fun presentCardPaymentFlow(activity: ComponentActivity, session: AirwallexSession, supportedCards: List<AirwallexSupportedCard> = enumValues<AirwallexSupportedCard>().toList(), paymentResultListener: Airwallex.PaymentResultListener)

Deprecated

Use presentCardPaymentFlow with PaymentElementConfiguration.Card parameter instead

Replace with

import com.airwallex.android.view.composables.PaymentElementConfiguration
presentCardPaymentFlow(activity, session, PaymentElementConfiguration.Card(supportedCardBrands = supportedCards), paymentResultListener)

Launch the card payment flow to allow the user to complete the entire payment flow

Parameters

activity

the launch activity on which the payment UI is presented

session

a AirwallexSession used to present the payment flow

supportedCards

deprecated parameter, use presentCardPaymentFlow with configuration instead

paymentResultListener

The callback of present entire payment flow