Package com.gemalto.mfs.mwsdk.payment
Enum Class PaymentServiceErrorCode
- All Implemented Interfaces:
Serializable,Comparable<PaymentServiceErrorCode>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis error is returned if the device lock type is not secured or there is no BioFP enrolled in the device.This error is returned if card activation failed.This error is thrown when card is already activated and is being tried to be activated againThe card planning to use for payment is not existing in SDK anymore.The payment credentials of this card ran over.This error is returned if setting of default card failedCard state is SUSPENDED.Error returned when Device is suspicious.Error returned when the function is not supported, e.g.Error returned when cannot access profile data (payment channel) from internal storageError returned due to internal error.Error returned when Initialize is failed due to inaccessible Android key storeError returned when loading Next CredentialsError returned when APDU processor is nullNo 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.Error code to indicate that context has not been set to the SDK.The SDK does not allow such operation.This error is thrown when payment is not allowed because SDK init is ongoing at this time.This error is thrown when payment is not allowed because SDK is not initializedThis error is thrown when payment is done before WalletSecureEnrollment is perfomed.This error is thrown when payment is not allowed because SDK upgrade processing is needed.This error happens when there is wrong state detected in APDU processors.The NFC connection between SDK and POS has lost while the APDU exchange still ongoingThis error happens when the input data from the MPA is not valid.This error happens when the output data cannot be sent to the MPA.This error happens when the default card does not support the specified payment type.This error happens when the PaymentService is already activated when it should not be the case.This error happens when the input data from the MPA is not valid.This error happens when the default card does not support the specified payment type.This error happens when the output data cannot be sent to the MPA.This error happens when the PaymentService is already activated when it should not be the case.This error is thrown when payment is done and there is issue with Storage component of SDKError returned when card profile type does not match any exsisting type (CARD_LIKE, FCDCVM and CDCVM ALWAYS)Error returned during delegated CDCVM if MPA states user authenticated. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()static PaymentServiceErrorCodeReturns the enum constant of this class with the specified name.static PaymentServiceErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
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
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
The NFC connection between SDK and POS has lost while the APDU exchange still ongoing -
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
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
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
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_SET_DEFAULT_FAILED
This error is returned if setting of default card failed -
QR_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_OUTPUT_INVALID
This error happens when the output data cannot be sent to the MPA. -
REMOTE_PAYMENT_NOT_SUPPORTED
This error happens when the default card does not support the specified payment type. -
REMOTE_PAYMENT_WRONG_STATE
This error happens when the PaymentService is already activated when it should not be the case. -
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
This error is thrown when payment is not allowed because SDK upgrade processing is needed. -
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 initialized -
NO_DEFAULT_CHV_METHOD
-
CARD_ACTIVATION_LISTENER_NOT_IMPLEMENTED
-
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
This error is thrown when payment is done before WalletSecureEnrollment is perfomed. -
STORAGE_COMPONENT_ERROR
This error is thrown when payment is done and there is issue with Storage component of SDK -
KEY_STORE_INACCESSIBLE
Error returned when Initialize is failed due to inaccessible Android key store -
NO_APDU_PROCESSOR_FOUND
Error returned when APDU processor is null -
ERROR_READING_PAYMENT_CHANNEL
Error returned when cannot access profile data (payment channel) from internal storage -
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
Error returned when loading Next Credentials -
ERROR_FUNCTION_NOT_SUPPORTED
Error returned when the function is not supported, e.g. selected AID is locked.- Since:
- 6.3.1
-
DEVICE_SUSPICIOUS
Error returned when Device is suspicious. This operation cannot continue .- Since:
- TSH Pay SDK 6.5.0
-
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
Error returned due to internal error. Check the exception for more details- Since:
- 6.6.0
-
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
-