confirmPaymentIntent
fun confirmPaymentIntent(session: AirwallexSession, card: PaymentMethod.Card, billing: Billing?, saveCard: Boolean = false, listener: Airwallex.PaymentResultListener)
Deprecated
Use checkout() with PaymentMethod instead
Replace with
import com.airwallex.android.core.model.PaymentMethod
Content copied to clipboard
checkout(session, paymentMethod, cvc = card.cvc, saveCard = saveCard, listener = listener)Content copied to clipboard
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: AirwallexSession, paymentConsent: PaymentConsent, listener: Airwallex.PaymentResultListener)
Deprecated
Use checkout() instead
Replace with
checkout(session, paymentConsent.paymentMethod!!, paymentConsentId = paymentConsent.id, paymentConsent = paymentConsent, listener = listener)Content copied to clipboard
Confirm a payment intent with payment consent
Parameters
session
an AirwallexSession 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: AirwallexSession, paymentConsentId: String, listener: Airwallex.PaymentResultListener)
Deprecated
Use checkout() instead
Replace with
import com.airwallex.android.core.model.PaymentMethod
Content copied to clipboard
checkout(session, PaymentMethod(type = "card"), paymentConsentId = paymentConsentId, listener = listener)Content copied to clipboard
Confirm a payment intent with payment consent ID
Parameters
session
an AirwallexSession used to start the payment flow
paymentConsentId
the ID of the PaymentConsent
listener
The callback of the payment flow