Enum ProvisioningServiceErrorCodes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ProvisioningServiceErrorCodes>

    public enum ProvisioningServiceErrorCodes
    extends java.lang.Enum<ProvisioningServiceErrorCodes>
    Error codes for Provisioning 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 investigating the CPS error.
    • Error codes with "Common" prefix can happen in any request.
    • Other error codes are prefixed with the corresponding use cases.
    • Enum Constant Detail

      • COMMON_NO_INTERNET

        public static final ProvisioningServiceErrorCodes COMMON_NO_INTERNET
        Internet is not available.
        This error is also returned if the client has attempted several times to connect but not able to due to very weak network signal.
      • COMMON_COMM_ERROR

        public static final ProvisioningServiceErrorCodes COMMON_COMM_ERROR
        Communication error occurred while performing request to the server.
      • COMMON_COMM_TIMEOUT_ERROR

        public static final ProvisioningServiceErrorCodes COMMON_COMM_TIMEOUT_ERROR
        Communication error occurred while performing request to the server.
      • AUTHENTICATION_REQUIRED

        public static final ProvisioningServiceErrorCodes AUTHENTICATION_REQUIRED
        Unable to access keystore for replenish retry.
      • ENROLLMENT_WRONG_CREDENTIALS

        public static final ProvisioningServiceErrorCodes ENROLLMENT_WRONG_CREDENTIALS
        Incorrect activation code or user id.
      • ENROLLMENT_CREDENTIAL_EXPIRED

        public static final ProvisioningServiceErrorCodes ENROLLMENT_CREDENTIAL_EXPIRED
        The activation code has expired on the server.
        This is indicated by the gateway's CREDENTIAL_MUST_BE_CHANGED error code.
      • ENROLLMENT_TRY_LIMIT_EXCEEDED

        public static final ProvisioningServiceErrorCodes ENROLLMENT_TRY_LIMIT_EXCEEDED
        Maximum retry for entering the activation code has been reached. The End-User is recommended to get a new set of credentials.
      • CARD_ACTIVATION_ACTIVATION_CODE_ENTRY_CANCELED

        public static final ProvisioningServiceErrorCodes CARD_ACTIVATION_ACTIVATION_CODE_ENTRY_CANCELED
        User has cancelled during entering the activation code.
      • CARD_ACTIVATION_MOBILE_PIN_INVALID_LENGTH

        public static final ProvisioningServiceErrorCodes CARD_ACTIVATION_MOBILE_PIN_INVALID_LENGTH
        User has entered an invalid mobile pin. According to ISO 9564 format 1, PIN should be from 4-12 digits.
      • CARD_ACTIVATION_MOBILE_PIN_MISMATCH

        public static final ProvisioningServiceErrorCodes CARD_ACTIVATION_MOBILE_PIN_MISMATCH
        Mobile PIN entry and re-entry do not match.
      • CHANGE_PIN_REENTRY_MISMATCH

        public static final ProvisioningServiceErrorCodes CHANGE_PIN_REENTRY_MISMATCH
        The new PIN entry and re-entry entered don't match.
      • CHANGE_PIN_CARD_NOT_ACTIVE

        public static final ProvisioningServiceErrorCodes CHANGE_PIN_CARD_NOT_ACTIVE
        Only Active card is allowed to change PIN.
      • CHANGE_PIN_CARD_NOT_EXIST

        public static final ProvisioningServiceErrorCodes CHANGE_PIN_CARD_NOT_EXIST
        If card does not exist while change pin.
      • RE_ENROLLMENT_REQUIRED

        public static final ProvisioningServiceErrorCodes RE_ENROLLMENT_REQUIRED
        For security reason, the user needs to re-enroll the application.
      • REPLENISHMENT_NOT_ALLOWED

        public static final ProvisioningServiceErrorCodes REPLENISHMENT_NOT_ALLOWED
        Replenishment error when replenishment request is triggered on SUSPENDED card state.
      • SDK_INTERNAL_COMPONENT_ERROR

        public static final ProvisioningServiceErrorCodes SDK_INTERNAL_COMPONENT_ERROR
        SDK internal error during processing, do not crash SDK but handle this
      • ENROLLMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED

        public static final ProvisioningServiceErrorCodes ENROLLMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
        Enrollment is not allowed becuase secure wallet enrollment is not performed
      • REPLENISHMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED

        public static final ProvisioningServiceErrorCodes REPLENISHMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
        Replenishment is not allowed becuase secure wallet enrollment is not performed
      • INVALID_REPLENISH_MISSING_PAYMENT

        public static final ProvisioningServiceErrorCodes INVALID_REPLENISH_MISSING_PAYMENT
        Trying to perform replenish Request without doing a single payment
      • DEVICE_STATE_NOT_OK

        public static final ProvisioningServiceErrorCodes DEVICE_STATE_NOT_OK
        Server reject the command as device is rooted
        Since:
        TSH Pay SDK 6.1.0
      • SDK_NEED_TO_BE_UPGRADED

        public static final ProvisioningServiceErrorCodes SDK_NEED_TO_BE_UPGRADED
        Server reject the command as mobile payment application need to be upgraded to the newer TSH Pay SDK
        Since:
        TSH Pay SDK 6.1.0
      • CARD_STATE_DESYNCHRO

        public static final ProvisioningServiceErrorCodes CARD_STATE_DESYNCHRO
        Card state is desynchronized. Here enrollment request is not matching with state in server. Example: SDK request enrollment where card is already enrolled. Here application can first request to delete the card before proceeding with further enrollment.
        Since:
        TSH Pay SDK 6.1.0
      • ENROLLMENT_REQUIRED

        public static final ProvisioningServiceErrorCodes ENROLLMENT_REQUIRED
        Enrollment hasnt been done.
        Since:
        TSH Pay SDK 6.1.0
      • RETRY_EXCEEDED

        public static final ProvisioningServiceErrorCodes RETRY_EXCEEDED
        Retry Timeout connection error : This error code returned when the HTTPS Status Code is 504 (HTTP_GATEWAY_TIMEOUT)
        Since:
        TSH Pay SDK 6.4.0
      • TRANSACTION_RECORDS_SIGNATURE_VERIFICATION_FAILED

        public static final ProvisioningServiceErrorCodes TRANSACTION_RECORDS_SIGNATURE_VERIFICATION_FAILED
        VISA Invalid Mac error
        Since:
        TSH Pay SDK 6.3.1
      • REPLENISHMENT_PERMANENT_ERROR

        public static final ProvisioningServiceErrorCodes REPLENISHMENT_PERMANENT_ERROR
        VISA REPLENISH Permanent Error
        Since:
        TSH Pay SDK 6.3.1
      • NULL_CONTEXT

        public static final ProvisioningServiceErrorCodes 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.4.3
      • DEVICE_SUSPICIOUS

        public static final ProvisioningServiceErrorCodes DEVICE_SUSPICIOUS
        Error returned when Device is suspicious. This operation cannot continue .
        Since:
        TSH Pay SDK 6.5.0
      • INVALID_SERVER_RESPONSE

        public static final ProvisioningServiceErrorCodes INVALID_SERVER_RESPONSE
        Invalid server response received.
        Since:
        TSH Pay SDK 6.6.0
    • Method Detail

      • values

        public static ProvisioningServiceErrorCodes[] 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 (ProvisioningServiceErrorCodes c : ProvisioningServiceErrorCodes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProvisioningServiceErrorCodes 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