public enum CvvCode extends Enum<CvvCode>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
CVV_0
For Maestro, the CVV2 matched.
|
CVV_1
For Maestro, the CVV2 did not match.
|
CVV_2
For Maestro, the merchant has not implemented CVV2 code handling.
|
CVV_3
For Maestro, the merchant has indicated that CVV2 is not present on card.
|
CVV_4
For Maestro, the service is not available.
|
CVV_E
For Visa, Mastercard, Discover, or American Express, error - unrecognized or unknown response.
|
CVV_I
For Visa, Mastercard, Discover, or American Express, invalid or null.
|
CVV_M
For Visa, Mastercard, Discover, or American Express, the CVV2/CSC matches.
|
CVV_N
For Visa, Mastercard, Discover, or American Express, the CVV2/CSC does not match.
|
CVV_P
For Visa, Mastercard, Discover, or American Express, it was not processed.
|
CVV_S
For Visa, Mastercard, Discover, or American Express, the service is not supported.
|
CVV_U
For Visa, Mastercard, Discover, or American Express, unknown - the issuer is not certified.
|
CVV_X
For Visa, Mastercard, Discover, or American Express, no response.
|
ENUM_ALL_OTHERS
For Visa, Mastercard, Discover, or American Express, error.
|
| Modifier and Type | Method and Description |
|---|---|
static CvvCode |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static CvvCode |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<CvvCode> toConvert)
Convert list of CvvCode values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static CvvCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CvvCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CvvCode CVV_E
public static final CvvCode CVV_I
public static final CvvCode CVV_M
public static final CvvCode CVV_N
public static final CvvCode CVV_P
public static final CvvCode CVV_S
public static final CvvCode CVV_U
public static final CvvCode CVV_X
public static final CvvCode ENUM_ALL_OTHERS
public static final CvvCode CVV_0
public static final CvvCode CVV_1
public static final CvvCode CVV_2
public static final CvvCode CVV_3
public static final CvvCode CVV_4
public static final CvvCode _UNKNOWN
public static CvvCode[] values()
for (CvvCode c : CvvCode.values()) System.out.println(c);
public static CvvCode 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 CvvCode constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static CvvCode fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
Copyright © 2025. All rights reserved.