-
- All Implemented Interfaces:
-
com.adyen.checkout.components.ActionComponent,com.adyen.checkout.components.Component,com.adyen.checkout.components.base.IntentHandlingComponent,com.adyen.checkout.components.base.ResultHandlingComponent,com.adyen.threeds2.ChallengeStatusReceiver
public final class Adyen3DS2Component extends BaseActionComponent<Adyen3DS2Configuration> implements ChallengeStatusReceiver, IntentHandlingComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAdyen3DS2Component.Companion
-
Constructor Summary
Constructors Constructor Description Adyen3DS2Component(SavedStateHandle savedStateHandle, Application application, Adyen3DS2Configuration configuration, SubmitFingerprintRepository submitFingerprintRepository, Adyen3DS2Serializer adyen3DS2Serializer, RedirectDelegate redirectDelegate)
-
Method Summary
Modifier and Type Method Description Unitobserve(LifecycleOwner lifecycleOwner, Observer<ActionComponentData> observer)final UnitsetUiCustomization(UiCustomization uiCustomization)Set a UiCustomization object to be passed to the 3DS2 SDK for customizing the challenge screen. BooleancanHandleAction(Action action)Unitcompleted(CompletionEvent completionEvent)Unitcancelled()Unittimedout()UnitprotocolError(ProtocolErrorEvent protocolErrorEvent)UnitruntimeError(RuntimeErrorEvent runtimeErrorEvent)final StringcreateEncodedFingerprint(AuthenticationRequestParameters authenticationRequestParameters)UnithandleIntent(Intent intent)Call this method when receiving the return URL from the 3DS redirect with the result data. -
Methods inherited from class androidx.lifecycle.AndroidViewModel
clear, getTag, setTagIfAbsent -
Methods inherited from class com.adyen.checkout.components.base.lifecycle.ActionComponentViewModel
getApplication -
Methods inherited from class com.adyen.checkout.adyen3ds2.Adyen3DS2Component
getPaymentData, handleAction, notifyDetails, notifyException, observeErrors, removeErrorObserver, removeErrorObservers, removeObserver, removeObservers, restoreState, saveState, setPaymentData -
Methods inherited from class com.adyen.checkout.components.base.BaseActionComponent
getConfiguration, getSavedStateHandle -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Adyen3DS2Component
Adyen3DS2Component(SavedStateHandle savedStateHandle, Application application, Adyen3DS2Configuration configuration, SubmitFingerprintRepository submitFingerprintRepository, Adyen3DS2Serializer adyen3DS2Serializer, RedirectDelegate redirectDelegate)
-
-
Method Detail
-
observe
Unit observe(LifecycleOwner lifecycleOwner, Observer<ActionComponentData> observer)
-
setUiCustomization
final Unit setUiCustomization(UiCustomization uiCustomization)
Set a UiCustomization object to be passed to the 3DS2 SDK for customizing the challenge screen. Needs to be set before handling any action.
- Parameters:
uiCustomization- The customization object.
-
canHandleAction
Boolean canHandleAction(Action action)
-
protocolError
Unit protocolError(ProtocolErrorEvent protocolErrorEvent)
-
runtimeError
Unit runtimeError(RuntimeErrorEvent runtimeErrorEvent)
-
createEncodedFingerprint
final String createEncodedFingerprint(AuthenticationRequestParameters authenticationRequestParameters)
-
handleIntent
Unit handleIntent(Intent intent)
Call this method when receiving the return URL from the 3DS redirect with the result data. This result will be in the Intent.getData and begins with the returnUrl you specified on the payments/ call.
- Parameters:
intent- The received Intent.
-
-
-
-