AirwallexCheckoutViewModel
open class AirwallexCheckoutViewModel(application: Application, val airwallex: Airwallex, session: AirwallexSession) : AndroidViewModel
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun checkout(paymentMethod: PaymentMethod, additionalInfo: Map<String, String>? = null, flow: AirwallexPaymentRequestFlow? = null): AirwallexPaymentStatus
suspend fun checkout(paymentMethod: PaymentMethod, paymentConsentId: String?, cvc: String, flow: AirwallexPaymentRequestFlow = AirwallexPaymentRequestFlow.IN_APP): AirwallexPaymentStatus
fun checkout(paymentMethod: PaymentMethod, paymentConsentId: String?, cvc: String?, additionalInfo: Map<String, String>? = null, flow: AirwallexPaymentRequestFlow? = null): LiveData<AirwallexPaymentStatus>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun retrievePaymentMethodTypeInfo(paymentMethodTypeName: String): Result<PaymentMethodTypeInfo>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Update the Airwallex instance when the activity is recreated. This should be called in the activity's onCreate or onStart.