DeviceManagementEvent

public class DeviceManagementEvent

Received when a specific DeviceManagementAction has been sent to do something on the payment terminal.

Fields

BIN_TABLE_ID_KEY

public static final String BIN_TABLE_ID_KEY

VSP BIN Table ID

CONFIG_ID_KEY

public static final String CONFIG_ID_KEY

VSP config id

ENCRYPTED_MESSAGE_KEY

public static final String ENCRYPTED_MESSAGE_KEY

Encrypted Message

ENCRYPTION_ALGORITHM_KEY

public static final String ENCRYPTION_ALGORITHM_KEY

VSP Encryption Algorithm

ENCRYPTION_STATE_KEY

public static final String ENCRYPTION_STATE_KEY

VSP Encryption State

EPARMS_KEY

public static final String EPARMS_KEY

VCL EPARMS data

INITIALIZATION_VECTOR_KEY

public static final String INITIALIZATION_VECTOR_KEY

Initialization Vector for the encryption performed.

INITIAL_KEY_ID_KEY

public static final String INITIAL_KEY_ID_KEY

VSP initial key id

KSN_KEY

public static final String KSN_KEY

Key Serial Number

MDK_LABEL_KEY

public static final String MDK_LABEL_KEY

VSP MDK Label

OPERATION_MODE_KEY

public static final String OPERATION_MODE_KEY

VSP operation mode

TRACK1_KEY

public static final String TRACK1_KEY

VCL Track 1 data

TRACK2_KEY

public static final String TRACK2_KEY

VCL Track 2 data

TYPE

public static final String TYPE

Device management event type

VSP_FIRMWARE_VERSION_KEY

public static final String VSP_FIRMWARE_VERSION_KEY

VSP Firmware Version

VSP_MODE_KEY

public static final String VSP_MODE_KEY

VSP Mode

VSP_STATE_KEY

public static final String VSP_STATE_KEY

VSP State

Methods

generateTransactionEventResponse

public TransactionEventResponse generateTransactionEventResponse()

Generate transaction event response for the current event.

Return:

empty response when a standard transaction event. Child classes may implement appropriate responses as needed.

getActionType

public DeviceManagementAction getActionType()

Get Device Management Action type

getEventId

public String getEventId()

Returns the event ID associated with this event. Useful for matching the event received by the listener to the original status returned when issuing the call, for example, calling com.verifone.commerce.payment.TransactionManager.reprintReceipt(Payment) returns a CommerceEvent containing an event ID, which will match the event ID received by the CommerceListener when the receipt reprint is complete.

getInvoiceId

public String getInvoiceId()

The invoice ID for the transaction as a reference.

getMessage

public String getMessage()

A user-readable message. This message may not be localized, in which case the type field should be used for determining a localized message.

getSessionId

public String getSessionId()

Get the session ID for the session which triggered this event.

getStatus

public int getStatus()

Get the status for this particular event. A status of 0 means success, any other status is a failure.

getTransaction

public Transaction getTransaction()

The transaction associated with this event.

getType

public String getType()

The type of status. This will generally be SUCCESS for a status of 0, and contain a different type for other errors. For example, in a refund or void, it is possible to receive type TRANSACTION_NOT_FOUND. This may be used for localizing the specific messages as needed

getValue

public String getValue(String key)

Get mapped DeviceManagementEvent values based on selected key values. Map includes VCL encryption such as track1, track2, and EPARMS values, as well as VSP configuration values. Returns null if the key is not present in the map.