public enum DefaultTransactionStatuses extends Enum<DefaultTransactionStatuses> implements TransactionStatus
Enum Constant and Description |
---|
FAILURE
The payment gateway failed to successfully process the transaction.
|
REQUIRES_3DS_VERIFICATION
The transaction was received by the payment gateway, but they have requested 3DS verification
from the customer before the transaction can be executed.
|
SENDING_TO_PROCESSOR
The payment gateway call is being prepared, or has been made and we don't know the response
yet.
|
SUCCESS
The transaction was successfully processed by the payment gateway.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isFailure(String transactionStatus) |
static boolean |
isRequires3DSVerification(String transactionStatus) |
static boolean |
isSendingToProcessor(String transactionStatus) |
static boolean |
isSuccess(String transactionStatus) |
static DefaultTransactionStatuses |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultTransactionStatuses[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final DefaultTransactionStatuses SENDING_TO_PROCESSOR
public static final DefaultTransactionStatuses REQUIRES_3DS_VERIFICATION
public static final DefaultTransactionStatuses SUCCESS
public static final DefaultTransactionStatuses FAILURE
public static DefaultTransactionStatuses[] values()
for (DefaultTransactionStatuses c : DefaultTransactionStatuses.values()) System.out.println(c);
public static DefaultTransactionStatuses valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isSendingToProcessor(String transactionStatus)
public static boolean isSuccess(String transactionStatus)
public static boolean isRequires3DSVerification(String transactionStatus)
public static boolean isFailure(String transactionStatus)
Copyright © 2021. All rights reserved.