Interface ActionComponent
-
- All Implemented Interfaces:
-
com.adyen.checkout.components.core.internal.Component
public interface ActionComponent implements Component
A component that handles an "action" to be taken from the result of the /payments API call.
If an ActionComponentData is emitted from this component, it should be sent back through the /payments/details API call.
-
-
Method Summary
Modifier and Type Method Description abstract UnithandleAction(Action action, Activity activity)Provide the action from the API response that needs to be handled. abstract BooleancanHandleAction(Action action)Checks if this component can handle the specific action type. -
-
Method Detail
-
handleAction
abstract Unit handleAction(Action action, Activity activity)
Provide the action from the API response that needs to be handled.
- Parameters:
action- The parsed object from the API of the action to be taken.activity- The Activity starting the action.
-
canHandleAction
abstract Boolean canHandleAction(Action action)
Checks if this component can handle the specific action type.
- Parameters:
action- The Action object from the API response.- Returns:
If the action can be handled by this component.
-
-
-
-