confirmPaymentIntent

Deprecated

Use checkout() with PaymentMethod instead

Replace with

import com.airwallex.android.core.model.PaymentMethod
checkout(session, paymentMethod, cvc = card.cvc, saveCard = saveCard, listener = listener)

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


Deprecated

Use checkout() instead

Replace with

checkout(session, paymentConsent.paymentMethod!!, paymentConsentId = paymentConsent.id, paymentConsent = paymentConsent, listener = listener)

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


Deprecated

Use checkout() instead

Replace with

import com.airwallex.android.core.model.PaymentMethod
checkout(session, PaymentMethod(type = "card"), paymentConsentId = paymentConsentId, listener = listener)

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