vnpayment / com.venuenext.vnpayment.protocol / PaymentProcessable

PaymentProcessable

interface PaymentProcessable

Implementations must call PaymentSelectionResultListener#onPaymentResult or PaymentSelectionResultListener#onCancel on a successful payment or on cancellation (respectively).

Functions

fetchPaymentMethod

Determines if there is an existing payment method. Implementers should required to call PaymentSelectionResultListener.onPaymentRetrieved with the result of the last used payment method, or null if there is no existing payment method.

abstract fun fetchPaymentMethod(paymentSelectionResultListener: PaymentSelectionResultListener): Unit

processPayment

Starts payment processing.

abstract fun processPayment(paymentSelectionResultListener: PaymentSelectionResultListener): Unit

Inheritors

PaymentProcessableFragment

abstract class PaymentProcessableFragment : Fragment, PaymentProcessable