confirmPaymentIntent
fun confirmPaymentIntent(session: AirwallexSession, card: PaymentMethod.Card, billing: Billing?, saveCard: Boolean = false, listener: Airwallex.PaymentResultListener)
Confirm a payment intent with card and billing details
Parameters
session
a AirwallexSession used to start the payment flow
card
the card information
billing
the billing information, it's optional
saveCard
whether card will be saved as a payment consent, if set as true, AirwallexSession.customerId must be provided for the session
listener
The callback of the payment flow
fun confirmPaymentIntent(session: AirwallexPaymentSession, paymentConsent: PaymentConsent, listener: Airwallex.PaymentResultListener)
Confirm a payment intent with payment consent ID
Parameters
session
a AirwallexPaymentSession used to start the payment flow
paymentConsent
a PaymentConsent used to start the payment flow
listener
The callback of the payment flow
fun confirmPaymentIntent(session: AirwallexPaymentSession, paymentConsentId: String, listener: Airwallex.PaymentResultListener)
Confirm a payment intent with payment consent ID
Parameters
session
a AirwallexPaymentSession used to start the payment flow
paymentConsentId
the ID of the PaymentConsent
listener
The callback of the payment flow