public enum FlowAction extends java.lang.Enum<FlowAction>
FlowCoordinator allows the execution of certain actions on the flow. Those actions
depends on the current state of the coordinator.
This enum holds all possible actions which can be triggered from the outside. If a particular
action can be executed depends on the inner state of the coordinator. To check if a particular
action can be executed the FlowCoordinator.dryTriggerAction(FlowAction) can be
invoked.
To actually execute a particular action the method FlowCoordinator.triggerAction(FlowAction)
can be used. See also the documentation of the actions to see when an execution is generally
possible.
| Enum Constant and Description |
|---|
GO_BACK
The go back action allows to trigger a change back to the previous screen.
|
SUBMIT_PAYMENT_FORM
This action triggers actually the sending of the payment information to the remote server
within the
PaymentFormView. |
SWITCH_TO_PAYMENT_METHOD_SELECTION
When the
Tokens are listed the user may want
to register a new token. |
VALIDATE_PAYMENT_FORM
This action triggers the validation of the payment information entered in the
PaymentFormView. |
| Modifier and Type | Method and Description |
|---|---|
static FlowAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlowAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowAction VALIDATE_PAYMENT_FORM
This action triggers the validation of the payment information entered in the PaymentFormView. The validation does not send the data
however it checks if everything entered is in the correct format and if the required input
has been provided.
As a result the OnPaymentFormValidationListener
is triggered. To listen to the result the mentioned listener may be implemented.
public static final FlowAction SUBMIT_PAYMENT_FORM
This action triggers actually the sending of the payment information to the remote server
within the PaymentFormView. The submit will try to
process the data and eventually authorize the transaction.
As a result either OnTransactionSuccessListener
or OnTransactionFailureListener.
public static final FlowAction SWITCH_TO_PAYMENT_METHOD_SELECTION
When the Tokens are listed the user may want
to register a new token. This action allows to trigger the switch to the payment method
selection which allows to register a new token.
public static final FlowAction GO_BACK
public static FlowAction[] values()
for (FlowAction c : FlowAction.values()) System.out.println(c);
public static FlowAction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null