Package com.adyen.checkout.card
Class CardComponent
-
- All Implemented Interfaces:
-
com.adyen.checkout.action.core.internal.ActionHandlingComponent,com.adyen.checkout.components.core.internal.AddressLookupComponent,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 class CardComponent extends ViewModel implements PaymentComponent, ViewableComponent, ButtonComponent, AddressLookupComponent, ActionHandlingComponent
A PaymentComponent that supports the PaymentMethodTypes.SCHEME payment method.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CardComponentProviderPROVIDERpublic final static List<String>PAYMENT_METHOD_TYPESprivate final ComponentDelegatedelegateprivate final Flow<ComponentViewType>viewFlow
-
Constructor Summary
Constructors Constructor Description CardComponent(CardDelegate cardDelegate, GenericActionDelegate genericActionDelegate, DefaultActionHandlingComponent actionHandlingComponent, ComponentEventHandler<CardComponentState> componentEventHandler)
-
Method Summary
Modifier and Type Method Description ComponentDelegategetDelegate()Flow<ComponentViewType>getViewFlow()final Unitobserve(LifecycleOwner lifecycleOwner, Function1<PaymentComponentEvent<CardComponentState>, Unit> callback)final UnitremoveObserver()BooleanisConfirmationRequired()Unitsubmit()UnitsetInteractionBlocked(Boolean isInteractionBlocked)final UnitsetOnBinValueListener(Function1<String, Unit> listener)Set a callback that will be called when the bin value changes. final UnitsetOnBinLookupListener(Function1<List<BinLookupData>, Unit> listener)Set a callback that will be called when a bin lookup is performed. UnitsetAddressLookupCallback(AddressLookupCallback addressLookupCallback)UnitupdateAddressLookupOptions(List<LookupAddress> options)UnitsetAddressLookupResult(AddressLookupResult addressLookupResult)final BooleanhandleBackPress()-
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable, addCloseable, getCloseable -
Methods inherited from class com.adyen.checkout.action.core.internal.ActionHandlingComponent
canHandleAction, handleAction, handleIntent, setOnRedirectListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CardComponent
CardComponent(CardDelegate cardDelegate, GenericActionDelegate genericActionDelegate, DefaultActionHandlingComponent actionHandlingComponent, ComponentEventHandler<CardComponentState> componentEventHandler)
-
-
Method Detail
-
getDelegate
ComponentDelegate getDelegate()
-
getViewFlow
Flow<ComponentViewType> getViewFlow()
-
observe
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final Unit observe(LifecycleOwner lifecycleOwner, Function1<PaymentComponentEvent<CardComponentState>, Unit> callback)
-
removeObserver
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) final Unit removeObserver()
-
isConfirmationRequired
Boolean isConfirmationRequired()
-
setInteractionBlocked
Unit setInteractionBlocked(Boolean isInteractionBlocked)
-
setOnBinValueListener
final Unit setOnBinValueListener(Function1<String, Unit> listener)
Set a callback that will be called when the bin value changes.
- Parameters:
listener- The callback that will be called when the bin value changes.
-
setOnBinLookupListener
final Unit setOnBinLookupListener(Function1<List<BinLookupData>, Unit> listener)
Set a callback that will be called when a bin lookup is performed.
- Parameters:
listener- The callback that will be called when a bin lookup is performed.
-
setAddressLookupCallback
Unit setAddressLookupCallback(AddressLookupCallback addressLookupCallback)
-
updateAddressLookupOptions
Unit updateAddressLookupOptions(List<LookupAddress> options)
-
setAddressLookupResult
Unit setAddressLookupResult(AddressLookupResult addressLookupResult)
-
handleBackPress
final Boolean handleBackPress()
-
-
-
-