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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit handleAction(Action action, Activity activity) Provide the action from the API response that needs to be handled.
      abstract Boolean canHandleAction(Action action) Checks if this component can handle the specific action type.
      • Methods inherited from class com.adyen.checkout.components.core.internal.Component

        getDelegate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.