vnpayment / com.venuenext.vnpayment / BasePaymentSelectionResultListener

BasePaymentSelectionResultListener

class BasePaymentSelectionResultListener : PaymentSelectionResultListener, BaseCoroutineScope

Handles navigation and payment method persistence

Constructors

<init>

Handles navigation and payment method persistence

BasePaymentSelectionResultListener(paymentNavigator: PaymentMethodNavigator, paymentHandler: PaymentHandler, onPaymentMethodRemovalFailed: (Exception) -> Unit)

Properties

onPaymentMethodRemovalFailed

val onPaymentMethodRemovalFailed: (Exception) -> Unit

Functions

onCancel

Called when the payment flow has been canceled.

fun onCancel(): Unit

onPaymentResult

Called when there is a result payment

fun onPaymentResult(paymentResult: PaymentResult): Unit

onPaymentRetrieved

Called when a payment method has been retrieved

fun onPaymentRetrieved(paymentResult: PaymentResult?): Unit