startRedirectPay

fun startRedirectPay(session: AirwallexSession, paymentMethodName: String, additionalInfo: Map<String, String>? = null, flow: AirwallexPaymentRequestFlow? = AirwallexPaymentRequestFlow.IN_APP, listener: Airwallex.PaymentResultListener)

Checkout the payment by paymentType and session

Parameters

session

a AirwallexSession used to present the Checkout flow, required.

paymentMethodName

a String representing one of the redirect payment type names, required. check all methods by API reference: https://www.airwallex.com/docs/api#/Payment_Acceptance/Config/_api_v1_pa_config_payment_method_types/get JSON Object field: items.name

additionalInfo

a Map containing extra information needed for certain payment types, such as phone number, email, bank details, etc., optional.

flow

an AirwallexPaymentRequestFlow, currently only supporting AirwallexPaymentRequestFlow.IN_APP, optional.

listener

the callback for the checkout result.