Companion
object Companion
Functions
Link copied to clipboard
suspend fun create(session: AirwallexSession, airwallex: Airwallex, configuration: PaymentElementConfiguration, paymentFlowListener: PaymentFlowListener): Result<PaymentElement>
Creates a PaymentElement by fetching required data.
fun create(session: AirwallexSession, airwallex: Airwallex, configuration: PaymentElementConfiguration, paymentFlowListener: PaymentFlowListener, callback: PaymentElementCallback)
Java-friendly: Creates a PaymentElement without automatic rendering.
suspend fun create(session: AirwallexSession, airwallex: Airwallex, configuration: PaymentElementConfiguration, onLoadingStateChanged: (Boolean) -> Unit? = null, onPaymentResult: (AirwallexPaymentStatus) -> Unit, onError: (Throwable) -> Unit? = null): Result<PaymentElement>
Creates a PaymentElement using callback-based approach.