Interface ActionComponentCallback

    • 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 onAdditionalDetails(ActionComponentData actionComponentData) In this method you should make a network call to the /payments/details endpoint of the Checkout API through your server.
      abstract Unit onError(ComponentError componentError) The component has encountered an error.
      Unit onPermissionRequest(String requiredPermission, PermissionHandlerCallback permissionCallback) Should be overridden to support runtime permissions for components.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onAdditionalDetails

         abstract Unit onAdditionalDetails(ActionComponentData actionComponentData)

        In this method you should make a network call to the /payments/details endpoint of the Checkout API through your server.

        We provide inside ActionComponentData the whole request data expected by the /payments/details endpoint. Use ActionComponentData.SERIALIZER to serialize this data to a JSONObject.

        You can dismiss the component after this API call is successful, there is no need to perform any extra actions.

        See https://docs.adyen.com/api-explorer/ for more information on the API documentation.

        Parameters:
        actionComponentData - The data from the action component.
      • onPermissionRequest

         Unit onPermissionRequest(String requiredPermission, PermissionHandlerCallback permissionCallback)

        Should be overridden to support runtime permissions for components. Runtime permission should be requested and communicated back through the callback. If not overridden, PermissionHandlerCallback.onPermissionRequestNotHandled will be invoked, which will show an error message.

        Parameters:
        requiredPermission - Required runtime permission.
        permissionCallback - Callback to be used when passing permission result.