Package com.adyen.checkout.bacs
Class BacsDirectDebitComponent
-
- All Implemented Interfaces:
-
com.adyen.checkout.action.core.internal.ActionHandlingComponent,com.adyen.checkout.components.core.internal.ButtonComponent,com.adyen.checkout.components.core.internal.Component,com.adyen.checkout.components.core.internal.PaymentComponent,com.adyen.checkout.ui.core.internal.ui.ViewableComponent
public final class BacsDirectDebitComponent extends ViewModel implements PaymentComponent, ViewableComponent, ButtonComponent, ActionHandlingComponent
A PaymentComponent that supports the PaymentMethodTypes.BACS payment method.
-
-
Field Summary
Fields Modifier and Type Field Description public final static BacsDirectDebitComponentProviderPROVIDERpublic final static List<String>PAYMENT_METHOD_TYPESprivate final ComponentDelegatedelegateprivate final Flow<ComponentViewType>viewFlow
-
Method Summary
Modifier and Type Method Description ComponentDelegategetDelegate()Flow<ComponentViewType>getViewFlow()final BooleansetConfirmationMode()Sets the displayed BACS view as the final confirmation view. final BooleansetInputMode()Resets the displayed BACS view back to the form input view. final BooleanhandleBackPress()Handle back press in BacsDirectDebitComponent if necessary. BooleanisConfirmationRequired()Unitsubmit()UnitsetInteractionBlocked(Boolean isInteractionBlocked)-
Methods inherited from class com.adyen.checkout.action.core.internal.ActionHandlingComponent
canHandleAction, handleAction, handleIntent, setOnRedirectListener -
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDelegate
ComponentDelegate getDelegate()
-
getViewFlow
Flow<ComponentViewType> getViewFlow()
-
setConfirmationMode
final Boolean setConfirmationMode()
Sets the displayed BACS view as the final confirmation view. Should only be called if the form is valid.
- Returns:
whether the view was successfully changed.
-
setInputMode
final Boolean setInputMode()
Resets the displayed BACS view back to the form input view.
- Returns:
whether the view was successfully changed.
-
handleBackPress
final Boolean handleBackPress()
Handle back press in BacsDirectDebitComponent if necessary.
- Returns:
Whether back press has been handled or not.
-
isConfirmationRequired
Boolean isConfirmationRequired()
-
setInteractionBlocked
Unit setInteractionBlocked(Boolean isInteractionBlocked)
-
-
-
-