public enum DefaultTransactionFailureTypes extends Enum<DefaultTransactionFailureTypes> implements TransactionFailureType
transactionFailureTypes
that we expect to
encounter with payment gateway interactionsEnum Constant and Description |
---|
API_RATE_LIMIT_ERROR
An error that occurs when too many requests hit the gateway's API too quickly
|
GATEWAY_CREDENTIALS_ERROR
The provided payment gateway credentials are not valid
|
GATEWAY_ERROR
There was an unexpected error with the payment gateway itself.
|
INTERNAL_ERROR
There was an error in our preparation of the gateway interaction or in our
interpretation/storing of the response.
|
INVALID_REQUEST
There was a failure to process the request because the request itself is invalid.
|
NETWORK_ERROR
There was an error in communicating with the payment gateway.
|
PROCESSING_FAILURE
The payment gateway failed to successfully process the transaction.
|
REQUIRES_ADDITIONAL_ACTION
Additional action is required from the customer for the gateway to successfully process the
transaction
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isGatewayCredentialsError(String transactionStatus) |
static boolean |
isGatewayError(String transactionStatus) |
static boolean |
isInternalError(String transactionStatus) |
static boolean |
isInvalidRequest(String transactionStatus) |
static boolean |
isNetworkError(String transactionStatus) |
static boolean |
isProcessingFailure(String transactionStatus) |
static boolean |
isRequiresAdditionalActionError(String transactionStatus) |
static DefaultTransactionFailureTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultTransactionFailureTypes[] |
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 DefaultTransactionFailureTypes GATEWAY_CREDENTIALS_ERROR
public static final DefaultTransactionFailureTypes INVALID_REQUEST
public static final DefaultTransactionFailureTypes PROCESSING_FAILURE
public static final DefaultTransactionFailureTypes REQUIRES_ADDITIONAL_ACTION
public static final DefaultTransactionFailureTypes GATEWAY_ERROR
public static final DefaultTransactionFailureTypes NETWORK_ERROR
public static final DefaultTransactionFailureTypes API_RATE_LIMIT_ERROR
public static final DefaultTransactionFailureTypes INTERNAL_ERROR
public static DefaultTransactionFailureTypes[] values()
for (DefaultTransactionFailureTypes c : DefaultTransactionFailureTypes.values()) System.out.println(c);
public static DefaultTransactionFailureTypes 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 isGatewayCredentialsError(String transactionStatus)
public static boolean isInvalidRequest(String transactionStatus)
public static boolean isProcessingFailure(String transactionStatus)
public static boolean isRequiresAdditionalActionError(String transactionStatus)
public static boolean isGatewayError(String transactionStatus)
public static boolean isNetworkError(String transactionStatus)
public static boolean isInternalError(String transactionStatus)
Copyright © 2021. All rights reserved.