checkout
fun checkout(session: AirwallexSession, paymentMethod: PaymentMethod, paymentConsentId: String? = null, cvc: String? = null, additionalInfo: Map<String, String>? = null, flow: AirwallexPaymentRequestFlow? = null, listener: Airwallex.PaymentResultListener, saveCard: Boolean = false)
Checkout the payment, include one-off & recurring
Parameters
session
a AirwallexSession used to present the Checkout flow, required.
paymentMethod
a PaymentMethod used to present the Checkout flow, required.
paymentConsentId
the ID of the PaymentConsent, optional. (CIT & Card will need this field for subsequent payments, paymentConsentId is not empty indicating a subsequent payment, empty indicating a recurring )
cvc
the CVC of the Credit Card, optional.
additionalInfo
used by LPMs
listener
The callback of checkout