Interface ButtonComponent

  • All Implemented Interfaces:

    
    public interface ButtonComponent
    
                        

    A component that requires a button to be clicked so that it can be submitted. This button might be visible during all or part of the payment flow.

    • 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 Boolean isConfirmationRequired() Indicates whether the component requires user interaction before the payment flow can be triggered.
      abstract Unit submit() Submits the component manually.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • isConfirmationRequired

         abstract Boolean isConfirmationRequired()

        Indicates whether the component requires user interaction before the payment flow can be triggered. User interaction usually means filling an input, clicking a button, selecting an item from a list, etc.

        If no interaction is required, the component can be submitted at any point after it's loaded.

      • submit

         abstract Unit submit()

        Submits the component manually. You can call this function to trigger a payment submission if the component is ready to make the payment.

        If the component is valid your onSubmit callback method will be triggered. Otherwise, any invalid inputs will be highlighted to bring them to the user's attention.