Package com.gemalto.mfs.mwsdk.payment
Enum PaymentServiceErrorCode
- java.lang.Object
-
- java.lang.Enum<PaymentServiceErrorCode>
-
- com.gemalto.mfs.mwsdk.payment.PaymentServiceErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PaymentServiceErrorCode>
public enum PaymentServiceErrorCode extends java.lang.Enum<PaymentServiceErrorCode>
Error codes for Payment Service operations to indicate an error that happened. The Library User should first check these error codes to see where the issue comes from before further investigation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIOFP_CONDITION_NOT_SATISFIED
This error is returned if the device lock type is not secured or there is no BioFP enrolled in the device.CARD_ACTIVATION_FAILED
This error is returned if card activation failed.CARD_ACTIVATION_LISTENER_NOT_IMPLEMENTED
CARD_ALREADY_ACTIVATED
This error is thrown when card is already activated and is being tried to be activated againCARD_NOT_EXISTING
The card planning to use for payment is not existing in SDK anymore.CARD_OUT_OF_PAYMENT_KEYS
The payment credentials of this card ran over.CARD_SET_DEFAULT_FAILED
This error is returned if setting of default card failedCARD_SUSPENDED
Card state is SUSPENDED.DEVICE_SUSPICIOUS
Error returned when Device is suspicious.ERROR_FUNCTION_NOT_SUPPORTED
Error returned when the function is not supported, e.g.ERROR_READING_PAYMENT_CHANNEL
Error returned when cannot access profile data (payment channel) from internal storageINTERNAL_ERROR
Error returned due to internal error.KEY_STORE_INACCESSIBLE
Error returned when Initialize is failed due to inaccessible Android key storeLOAD_NEXT_CRED_ERROR
Error returned when loading Next CredentialsNO_APDU_PROCESSOR_FOUND
Error returned when APDU processor is nullNO_DEFAULT_CARD
No default card setting in SDK
This error is returned if the client try to perform TAP_PAY_TAP payment or Low value transaction without PIN, however there is no default card setting previously.NO_DEFAULT_CHV_METHOD
NULL_CONTEXT
Error code to indicate that context has not been set to the SDK.OPERATION_NOT_ALLOWED
The SDK does not allow such operation.PAYMENT_NOT_ALLOWED_SDK_INIT_ONGOING
This error is thrown when payment is not allowed because SDK init is ongoing at this time.PAYMENT_NOT_ALLOWED_SDK_NOT_INITIALIZED
This error is thrown when payment is not allowed because SDK is not initializedPAYMENT_NOT_ALLOWED_SECURE_WALLET_ENROLLMENT_REQUIRED
This error is thrown when payment is done before WalletSecureEnrollment is perfomed.PAYMENT_NOT_ALLOWED_UPGRADE_NEEDED
This error is thrown when payment is not allowed because SDK upgrade processing is needed.PAYMENT_WRONG_STATE
This error happens when there is wrong state detected in APDU processors.POS_COMM_DISCONNECTED
The NFC connection between SDK and POS has lost while the APDU exchange still ongoingQR_CODE_INPUT_INVALID
This error happens when the input data from the MPA is not valid.QR_CODE_OUTPUT_INVALID
This error happens when the output data cannot be sent to the MPA.QR_CODE_PAYMENT_NOT_SUPPORTED
This error happens when the default card does not support the specified payment type.QR_CODE_WRONG_STATE
This error happens when the PaymentService is already activated when it should not be the case.REMOTE_PAYMENT_INPUT_INVALID
This error happens when the input data from the MPA is not valid.REMOTE_PAYMENT_NOT_SUPPORTED
This error happens when the default card does not support the specified payment type.REMOTE_PAYMENT_OUTPUT_INVALID
This error happens when the output data cannot be sent to the MPA.REMOTE_PAYMENT_WRONG_STATE
This error happens when the PaymentService is already activated when it should not be the case.STORAGE_COMPONENT_ERROR
This error is thrown when payment is done and there is issue with Storage component of SDKSUCCESS
UNSUPPORTED_CARD_TYPE
Error returned when card profile type does not match any exsisting type (CARD_LIKE, FCDCVM and CDCVM ALWAYS)USER_NOT_AUTHENTICATED
Error returned during delegated CDCVM if MPA states user authenticated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaymentServiceErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PaymentServiceErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final PaymentServiceErrorCode SUCCESS
-
CARD_SUSPENDED
public static final PaymentServiceErrorCode CARD_SUSPENDED
Card state is SUSPENDED.
This error is returned if the client try to perform a payment by using the SUSPENDED card.
-
CARD_OUT_OF_PAYMENT_KEYS
public static final PaymentServiceErrorCode CARD_OUT_OF_PAYMENT_KEYS
The payment credentials of this card ran over.
This error is returned if the client try to perform a payment but there is no more payment credentials available.
-
POS_COMM_DISCONNECTED
public static final PaymentServiceErrorCode POS_COMM_DISCONNECTED
The NFC connection between SDK and POS has lost while the APDU exchange still ongoing
-
NO_DEFAULT_CARD
public static final PaymentServiceErrorCode NO_DEFAULT_CARD
No default card setting in SDK
This error is returned if the client try to perform TAP_PAY_TAP payment or Low value transaction without PIN, however there is no default card setting previously.
-
CARD_NOT_EXISTING
public static final PaymentServiceErrorCode CARD_NOT_EXISTING
The card planning to use for payment is not existing in SDK anymore.
This error is will returned if the client try to activate the card,however the card has been deleted in the background.
-
OPERATION_NOT_ALLOWED
public static final PaymentServiceErrorCode OPERATION_NOT_ALLOWED
The SDK does not allow such operation. (e.g. In card-like, callingPaymentBusinessService.activate(DigitalizedCard, PaymentType, PaymentServiceListener)
explicitly is not allowed. It is always the default card to use for payment.)
-
BIOFP_CONDITION_NOT_SATISFIED
public static final PaymentServiceErrorCode BIOFP_CONDITION_NOT_SATISFIED
This error is returned if the device lock type is not secured or there is no BioFP enrolled in the device.
-
CARD_ACTIVATION_FAILED
public static final PaymentServiceErrorCode CARD_ACTIVATION_FAILED
This error is returned if card activation failed.
-
CARD_SET_DEFAULT_FAILED
public static final PaymentServiceErrorCode CARD_SET_DEFAULT_FAILED
This error is returned if setting of default card failed
-
QR_CODE_INPUT_INVALID
public static final PaymentServiceErrorCode QR_CODE_INPUT_INVALID
This error happens when the input data from the MPA is not valid.
-
QR_CODE_OUTPUT_INVALID
public static final PaymentServiceErrorCode QR_CODE_OUTPUT_INVALID
This error happens when the output data cannot be sent to the MPA.
-
QR_CODE_PAYMENT_NOT_SUPPORTED
public static final PaymentServiceErrorCode QR_CODE_PAYMENT_NOT_SUPPORTED
This error happens when the default card does not support the specified payment type.
-
QR_CODE_WRONG_STATE
public static final PaymentServiceErrorCode QR_CODE_WRONG_STATE
This error happens when the PaymentService is already activated when it should not be the case.
-
REMOTE_PAYMENT_INPUT_INVALID
public static final PaymentServiceErrorCode REMOTE_PAYMENT_INPUT_INVALID
This error happens when the input data from the MPA is not valid.
-
REMOTE_PAYMENT_OUTPUT_INVALID
public static final PaymentServiceErrorCode REMOTE_PAYMENT_OUTPUT_INVALID
This error happens when the output data cannot be sent to the MPA.
-
REMOTE_PAYMENT_NOT_SUPPORTED
public static final PaymentServiceErrorCode REMOTE_PAYMENT_NOT_SUPPORTED
This error happens when the default card does not support the specified payment type.
-
REMOTE_PAYMENT_WRONG_STATE
public static final PaymentServiceErrorCode REMOTE_PAYMENT_WRONG_STATE
This error happens when the PaymentService is already activated when it should not be the case.
-
PAYMENT_WRONG_STATE
public static final PaymentServiceErrorCode PAYMENT_WRONG_STATE
This error happens when there is wrong state detected in APDU processors. For example, PaymentService is already activated when it should not be the case.
-
PAYMENT_NOT_ALLOWED_UPGRADE_NEEDED
public static final PaymentServiceErrorCode PAYMENT_NOT_ALLOWED_UPGRADE_NEEDED
This error is thrown when payment is not allowed because SDK upgrade processing is needed.
-
PAYMENT_NOT_ALLOWED_SDK_INIT_ONGOING
public static final PaymentServiceErrorCode PAYMENT_NOT_ALLOWED_SDK_INIT_ONGOING
This error is thrown when payment is not allowed because SDK init is ongoing at this time.
-
PAYMENT_NOT_ALLOWED_SDK_NOT_INITIALIZED
public static final PaymentServiceErrorCode PAYMENT_NOT_ALLOWED_SDK_NOT_INITIALIZED
This error is thrown when payment is not allowed because SDK is not initialized
-
NO_DEFAULT_CHV_METHOD
public static final PaymentServiceErrorCode NO_DEFAULT_CHV_METHOD
-
CARD_ACTIVATION_LISTENER_NOT_IMPLEMENTED
public static final PaymentServiceErrorCode CARD_ACTIVATION_LISTENER_NOT_IMPLEMENTED
-
CARD_ALREADY_ACTIVATED
public static final PaymentServiceErrorCode CARD_ALREADY_ACTIVATED
This error is thrown when card is already activated and is being tried to be activated again
-
PAYMENT_NOT_ALLOWED_SECURE_WALLET_ENROLLMENT_REQUIRED
public static final PaymentServiceErrorCode PAYMENT_NOT_ALLOWED_SECURE_WALLET_ENROLLMENT_REQUIRED
This error is thrown when payment is done before WalletSecureEnrollment is perfomed.
-
STORAGE_COMPONENT_ERROR
public static final PaymentServiceErrorCode STORAGE_COMPONENT_ERROR
This error is thrown when payment is done and there is issue with Storage component of SDK
-
KEY_STORE_INACCESSIBLE
public static final PaymentServiceErrorCode KEY_STORE_INACCESSIBLE
Error returned when Initialize is failed due to inaccessible Android key store
-
NO_APDU_PROCESSOR_FOUND
public static final PaymentServiceErrorCode NO_APDU_PROCESSOR_FOUND
Error returned when APDU processor is null
-
ERROR_READING_PAYMENT_CHANNEL
public static final PaymentServiceErrorCode ERROR_READING_PAYMENT_CHANNEL
Error returned when cannot access profile data (payment channel) from internal storage
-
UNSUPPORTED_CARD_TYPE
public static final PaymentServiceErrorCode UNSUPPORTED_CARD_TYPE
Error returned when card profile type does not match any exsisting type (CARD_LIKE, FCDCVM and CDCVM ALWAYS)
-
LOAD_NEXT_CRED_ERROR
public static final PaymentServiceErrorCode LOAD_NEXT_CRED_ERROR
Error returned when loading Next Credentials
-
ERROR_FUNCTION_NOT_SUPPORTED
public static final PaymentServiceErrorCode ERROR_FUNCTION_NOT_SUPPORTED
Error returned when the function is not supported, e.g. selected AID is locked.- Since:
- 6.3.1
-
DEVICE_SUSPICIOUS
public static final PaymentServiceErrorCode DEVICE_SUSPICIOUS
Error returned when Device is suspicious. This operation cannot continue .- Since:
- TSH Pay SDK 6.5.0
-
USER_NOT_AUTHENTICATED
public static final PaymentServiceErrorCode USER_NOT_AUTHENTICATED
Error returned during delegated CDCVM if MPA states user authenticated. But SDK is unable to access Keystore due to KVD passed or Biometric_Weak is used for user authentication- Since:
- 6.5.0
-
INTERNAL_ERROR
public static final PaymentServiceErrorCode INTERNAL_ERROR
Error returned due to internal error. Check the exception for more details- Since:
- 6.6.0
-
NULL_CONTEXT
public static final PaymentServiceErrorCode NULL_CONTEXT
Error code to indicate that context has not been set to the SDK. Please check if Application has setContext to SDK or if SDK initialization has not been called.- Since:
- 6.6.0
-
-
Method Detail
-
values
public static PaymentServiceErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PaymentServiceErrorCode c : PaymentServiceErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentServiceErrorCode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-