Enum 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 Detail

      • 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.
      • 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
      • 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 name
        java.lang.NullPointerException - if the argument is null