presentCardPaymentFlow
fun presentCardPaymentFlow(activity: ComponentActivity, session: AirwallexSession, configuration: PaymentElementConfiguration.Card, paymentResultListener: Airwallex.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
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
Content copied to clipboard
presentCardPaymentFlow(activity, session, PaymentElementConfiguration.Card(supportedCardBrands = supportedCards), paymentResultListener)Content copied to clipboard
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