PaymentFlowViewModel
ViewModel for managing payment operations data. Handles fetching and storing payment methods and consents.
Types
Link copied to clipboard
Result of deleting a payment consent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PaymentResultEvent(val flowType: PaymentFlowViewModel.PaymentFlowType, val status: AirwallexPaymentStatus)
Event that wraps payment status with the flow type that triggered it
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun fetchAvailablePaymentMethodsAndConsents(): Result<Pair<List<AvailablePaymentMethodType>, List<PaymentConsent>>>
Fetches available payment methods and consents. Should only be called once from the parent component.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard