Class MppErrorCode

java.lang.Object
com.meawallet.mpp.MppErrorCode

public class MppErrorCode extends Object
Error codes.
  • Field Details

    • OPERATION_CANCELLED_BY_USER

      public static final int OPERATION_CANCELLED_BY_USER
      The operation was cancelled by user (1).
      See Also:
    • STABLE_HARDWARE_ID_ERROR

      public static final int STABLE_HARDWARE_ID_ERROR
      Failed to retrieve Google Pay Stable Hardware Id (2).
      See Also:
    • NOT_INITIALIZED

      public static final int NOT_INITIALIZED
      Library is not initialized (101).
      See Also:
    • OS_VERSION_NOT_SUPPORTED

      public static final int OS_VERSION_NOT_SUPPORTED
      Android versions below 4.4 (KitKat) is not supported (102).
      See Also:
    • DEBUGGER_ATTACHED

      public static final int DEBUGGER_ATTACHED
      Debugger is attached (106). Debugger usage is not allowed.
      See Also:
    • NO_NETWORK_CONNECTION

      public static final int NO_NETWORK_CONNECTION
      No network connection (109).
      See Also:
    • SDK_DEBUG_IN_APP_RELEASE_NOT_ALLOWED

      public static final int SDK_DEBUG_IN_APP_RELEASE_NOT_ALLOWED
      Sdk debug build is used in application release build (112).
      See Also:
    • GENERIC_NETWORK_PROBLEM

      public static final int GENERIC_NETWORK_PROBLEM
      Generic network problem occurred (201).
      See Also:
    • NETWORK_TIMEOUT

      public static final int NETWORK_TIMEOUT
      Network connection timeout error (202).
      See Also:
    • UNKNOWN_HOST

      public static final int UNKNOWN_HOST
      Host not found (204).
      See Also:
    • SSL_HANDSHAKE_FAILED

      public static final int SSL_HANDSHAKE_FAILED
      SSL handshake have failed (207).
      See Also:
    • INCORRECT_SERVER_RESPONSE_CODE

      public static final int INCORRECT_SERVER_RESPONSE_CODE
      Server returned incorrect response code (208).
      See Also:
    • INTERNAL_ERROR

      public static final int INTERNAL_ERROR
      Internal library error (501).
      See Also:
    • VERSION_ROLLBACK

      public static final int VERSION_ROLLBACK
      Library version rollback (503). Usage of later library versions is not allowed.
      See Also:
    • INCORRECT_INPUT_DATA

      public static final int INCORRECT_INPUT_DATA
      Some input data is incorrect (505).
      See Also:
    • REMOTE_DATA_ERROR

      public static final int REMOTE_DATA_ERROR
      Library failed to process remote data (507).
      See Also:
    • INTERNAL_SERVER_ERROR

      public static final int INTERNAL_SERVER_ERROR
      Issue on the server side (508).
      See Also:
    • DATA_VALIDATION_ERROR

      public static final int DATA_VALIDATION_ERROR
      Data validation error received from MeaWallet Token Management (601).
      See Also:
    • HEADER_API_KEY_ID_ERROR

      public static final int HEADER_API_KEY_ID_ERROR
      Request header API key processing error received from MeaWallet Token Management (603).
      See Also:
    • HEADER_TRACE_ID_ERROR

      public static final int HEADER_TRACE_ID_ERROR
      Request header trace key processing error received from MeaWallet Token Management (604).
      See Also:
    • HEADER_SECRET_ERROR

      public static final int HEADER_SECRET_ERROR
      Request header secret processing error received from MeaWallet Token Management (605).
      See Also:
    • REMOTE_GATEWAY_TIMEOUT_ERROR

      public static final int REMOTE_GATEWAY_TIMEOUT_ERROR
      Gateway timeout error received from MeaWallet Token Management (606).
      See Also:
    • MASTERCARD_TEMPORARY_UNAVAILABLE

      public static final int MASTERCARD_TEMPORARY_UNAVAILABLE
      Mastercard is temporary unavailable (607).
      See Also:
    • MASTERCARD_SETUP_ERROR

      public static final int MASTERCARD_SETUP_ERROR
      Wrong protocol implementation between MPP and Mastercard or Issuer has been onboarded with invalid certificates (608).
      See Also:
    • GOOGLE_PAY_ERROR

      public static final int GOOGLE_PAY_ERROR
      General Google Pay error (701).
      See Also:
    • GOOGLE_PAY_TOKEN_NOT_FOUND

      public static final int GOOGLE_PAY_TOKEN_NOT_FOUND
      Google Pay token for card not found (702).
      See Also:
    • GOOGLE_PAY_TOKEN_ALREADY_EXISTS

      public static final int GOOGLE_PAY_TOKEN_ALREADY_EXISTS
      Google Pay token for card already exists (703).
      See Also:
    • SAMSUNG_PAY_ERROR

      public static final int SAMSUNG_PAY_ERROR
      General Samsung Pay error (801).
      See Also:
    • SAMSUNG_PAY_TOKEN_NOT_FOUND

      public static final int SAMSUNG_PAY_TOKEN_NOT_FOUND
      Samsung Pay token for card not found (802).
      See Also:
    • SAMSUNG_PAY_TOKEN_ALREADY_EXISTS

      public static final int SAMSUNG_PAY_TOKEN_ALREADY_EXISTS
      Samsung Pay token for card already exists (803).
      See Also:
    • SAMSUNG_PAY_WALLET_ERROR

      public static final int SAMSUNG_PAY_WALLET_ERROR
      General Samsung Pay wallet error (804).
      See Also:
    • SAMSUNG_PAY_PUSH_ERROR

      public static final int SAMSUNG_PAY_PUSH_ERROR
      General Samsung Pay push error (805).
      See Also:
    • SAMSUNG_PAY_ERROR_VERIFY_CARD

      public static final int SAMSUNG_PAY_ERROR_VERIFY_CARD
      This error indicates that server was unable to verify the card operation.
      See Also:
  • Constructor Details

    • MppErrorCode

      public MppErrorCode()
  • Method Details

    • getDescription

      public static String getDescription(int errorCode)
      Get error code description.
      Parameters:
      errorCode - Error code integer value
      Returns:
      Error code description as string.
    • getName

      public static String getName(int errorCode)
      Get error code name
      Parameters:
      errorCode - Error code integer value
      Returns:
      Error code name as string
    • isErrorCode

      public static boolean isErrorCode(int errorCode)