Interface ButtonComponent
-
- All Implemented Interfaces:
public interface ButtonComponentA 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.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanisConfirmationRequired()Indicates whether the component requires user interaction before the payment flow can be triggered. abstract Unitsubmit()Submits the component manually. -
-
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.
-
-
-
-