Enum DefaultTransactionFailureTypes
java.lang.Object
java.lang.Enum<DefaultTransactionFailureTypes>
com.broadleafcommerce.paymentgateway.domain.enums.DefaultTransactionFailureTypes
- All Implemented Interfaces:
TransactionFailureType,Serializable,Comparable<DefaultTransactionFailureTypes>
public enum DefaultTransactionFailureTypes
extends Enum<DefaultTransactionFailureTypes>
implements TransactionFailureType
The default set of
transactionFailureTypes that we expect to
encounter with payment gateway interactions- Author:
- Chris Kittrell (ckittrell)
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error that occurs when too many requests hit the gateway's API too quicklyThe gateway is incorrectly configured or is not configured to handle the attempted type of requestThe provided payment gateway credentials are not validThere was an unexpected error with the payment gateway itself.There was an error in our preparation of the gateway interaction or in our interpretation/storing of the response.The provided payment method data is invalid.There was a failure to process the request because the request itself is invalid.There was an error in communicating with the payment gateway.The payment gateway failed to successfully process the transaction.Additional verification is required from the customer for the gateway to successfully process the transactionAdditional action is required for the transaction to be successfully processedThere was an error when checking the validity of the response.The required 3DS verification failed & the customer is not authorized to use the payment method. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanis3DSVerificationFailure(String failureType) static booleanisAPIRateLimitError(String failureType) static booleanisGatewayConfigurationError(String failureType) static booleanisGatewayCredentialsError(String failureType) static booleanisGatewayError(String failureType) static booleanisInternalError(String failureType) static booleanisInvalidPaymentMethod(String failureType) static booleanisInvalidRequest(String failureType) static booleanisNetworkError(String failureType) static booleanisProcessingFailure(String failureType) static booleanisRequires3DSVerification(String failureType) static booleanisRequiresAdditionalAction(String failureType) static booleanisResponseValidationFailure(String failureType) 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.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.broadleafcommerce.paymentgateway.domain.enums.TransactionFailureType
name
-
Enum Constant Details
-
GATEWAY_CREDENTIALS_ERROR
The provided payment gateway credentials are not valid -
GATEWAY_CONFIGURATION_ERROR
The gateway is incorrectly configured or is not configured to handle the attempted type of request -
INVALID_REQUEST
There was a failure to process the request because the request itself is invalid. -
INVALID_PAYMENT_METHOD
The provided payment method data is invalid. This could be an incorrect card number, expiration date, etc. -
PROCESSING_FAILURE
The payment gateway failed to successfully process the transaction. This primarily represents a declined payment. -
REQUIRES_3DS_VERIFICATION
Additional verification is required from the customer for the gateway to successfully process the transaction -
THREE_D_SECURE_VERIFICATION_FAILURE
The required 3DS verification failed & the customer is not authorized to use the payment method. -
REQUIRES_ADDITIONAL_ACTION
Additional action is required for the transaction to be successfully processed -
GATEWAY_ERROR
There was an unexpected error with the payment gateway itself. -
NETWORK_ERROR
There was an error in communicating with the payment gateway. This can correlate to a known network failure/timeout or connection issue. -
RESPONSE_VALIDATION_FAILURE
There was an error when checking the validity of the response. Therefore, we're unsure if we can trust the contents of the response. In this case, it's best to treat the transaction as a failure and investigate it offline. -
API_RATE_LIMIT_ERROR
An error that occurs when too many requests hit the gateway's API too quickly -
INTERNAL_ERROR
There was an error in our preparation of the gateway interaction or in our interpretation/storing of the response.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isGatewayCredentialsError
-
isGatewayConfigurationError
-
isInvalidRequest
-
isInvalidPaymentMethod
-
isProcessingFailure
-
isRequires3DSVerification
-
is3DSVerificationFailure
-
isRequiresAdditionalAction
-
isGatewayError
-
isNetworkError
-
isResponseValidationFailure
-
isAPIRateLimitError
-
isInternalError
-