SchemaPaymentViewModel

ViewModel for managing payment operations data. Handles fetching and storing payment methods and consents.

Constructors

Link copied to clipboard
constructor(application: Application, airwallex: Airwallex, session: AirwallexSession)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Factory(application: Application, airwallex: Airwallex, session: AirwallexSession) : ViewModelProvider.Factory
Link copied to clipboard
data class SchemaData(val fields: List<DynamicSchemaField> = emptyList(), val paymentMethod: PaymentMethod? = null, val typeInfo: PaymentMethodTypeInfo? = null, val banks: List<Bank> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
suspend fun checkout(paymentMethod: PaymentMethod, additionalInfo: Map<String, String>?, flow: AirwallexPaymentRequestFlow?): AirwallexPaymentStatus
suspend fun checkout(paymentMethod: PaymentMethod, paymentConsentId: String?, cvc: String, flow: AirwallexPaymentRequestFlow): AirwallexPaymentStatus
fun checkout(paymentMethod: PaymentMethod, paymentConsentId: String?, cvc: String?, additionalInfo: Map<String, String>?, flow: AirwallexPaymentRequestFlow?): LiveData<AirwallexPaymentStatus>
Link copied to clipboard
Link copied to clipboard
fun checkoutWithSchema(paymentMethodType: AvailablePaymentMethodType): Job
fun checkoutWithSchema(paymentMethod: PaymentMethod, additionalInfo: Map<String, String>, typeInfo: PaymentMethodTypeInfo): Job
Link copied to clipboard
open fun <T : Application> getApplication(): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun retrieveBanks(paymentMethodTypeName: String): Result<BankResponse>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun trackScreenViewed(eventName: String, params: Map<String, Any>)
Link copied to clipboard