Airwallex

class Airwallex

Constructors

Link copied to clipboard
constructor(fragment: Fragment)

Constructor of Airwallex

constructor(activity: ComponentActivity)
constructor(activity: ComponentActivity, applicationContext: Context)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface PaymentListener<T>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
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

Link copied to clipboard

Confirm a payment intent with payment consent ID

Confirm a payment intent with card and billing details

Link copied to clipboard

Confirm PaymentIntent with Device Fingerprinting

Link copied to clipboard
fun handlePaymentData(requestCode: Int, resultCode: Int, data: Intent?): Boolean

Method to handle Activity results from Airwallex activities. Pass data here from your host's #onActivityResult(int, int, Intent) function.

Link copied to clipboard

Confirm a payment intent with google pay options

Link copied to clipboard
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

Link copied to clipboard

Update the activity reference. This should be called when the activity is recreated due to configuration changes to ensure the Airwallex instance always has a valid activity reference.