PsdkDeviceInformation

public final class PsdkDeviceInformation

User-displayable information about the connected device and the SDK. Some values may not be available depending on the connection type and the messages that have been sent up to this point.

Fields

ACCEPT_ANY_DEVICE_VALUE

public static final String ACCEPT_ANY_DEVICE_VALUE

When this is the value of the DEVICE_LOGICAL_ID_KEY, any successful connection to a terminal is accepted, regardless of the device’s ID.

DEVICE_ADDRESS_KEY

public static final String DEVICE_ADDRESS_KEY

The key to store device address of the saved device. Used during initialization to select a specific device at a specific address.

DEVICE_ADDRESS_TYPE_BTPAN

public static final String DEVICE_ADDRESS_TYPE_BTPAN

The device address type BTPAN.

DEVICE_ADDRESS_TYPE_KEY

public static final String DEVICE_ADDRESS_TYPE_KEY

The key to store device address type

DEVICE_CONNECTION_TYPE_KEY

public static final String DEVICE_CONNECTION_TYPE_KEY

The key to store connection type of the saved device.

DEVICE_HAS_NAVIGATOR_KEY

public static final String DEVICE_HAS_NAVIGATOR_KEY

The key to store if has navigator support of the saved device.

DEVICE_LOGICAL_ID_KEY

public static final String DEVICE_LOGICAL_ID_KEY

The key to store logical id of the saved device.

DEVICE_MAC_ADDRESS_KEY

public static final String DEVICE_MAC_ADDRESS_KEY

The key to store device mac address of the saved device.

DEVICE_MODEL_KEY

public static final String DEVICE_MODEL_KEY

The key to store device model of the saved device.

DEVICE_SERIAL_NUMBER_KEY

public static final String DEVICE_SERIAL_NUMBER_KEY

The key to store serial number of the saved device.

DEVICE_STATE_KEY

public static final String DEVICE_STATE_KEY

The key to store the state of the device

HOTSPOT_ADDRESS_KEY

public static final String HOTSPOT_ADDRESS_KEY

The key to store the tethered (hotspot) network ip address

UNSOLICITED_PORT_KEY

public static final String UNSOLICITED_PORT_KEY

The key to store the unsolicited messages listener port

mAddress

final String mAddress

mAddressType

final String mAddressType

mConnectionType

final String mConnectionType

mHasNavigator

final Boolean mHasNavigator

mIsListening

final boolean mIsListening

mLogicalDeviceId

final String mLogicalDeviceId

mMacAddress

final String mMacAddress

mMerchantConfig

final ArrayList<Merchant> mMerchantConfig

mModel

final String mModel

mPaymentAppName

final String mPaymentAppName

mPaymentAppVersion

final String mPaymentAppVersion

mPaymentProtocol

final String mPaymentProtocol

mSerialNumber

final String mSerialNumber

mState

final PaymentDeviceState mState

Constructors

PsdkDeviceInformation

public PsdkDeviceInformation(String connectionType, String address, String macAddress, String addressType, String serialNumber, String model, Boolean hasNavigator, String paymentProtocol, String paymentAppName, String paymentAppVersion, String logicalDeviceId, PaymentDeviceState state, boolean isListening, ArrayList<Merchant> merchantConfig)

Methods

getAddress

public String getAddress()

The address used for the connection, e.g. IP Address for network connections, MAC address for Bluetooth, or COM port for USB.

getAddressType

public String getAddressType()

The type of the address value.

getConnectionType

public String getConnectionType()

Connection type, e.g., TCP/IP, Bluetooth or USB.

getHasNavigator

public Boolean getHasNavigator()

Whether or not Navigator is available on the current device. If Navigator is not available, any related operations will return with the NAVIGATOR_NOT_AVAILABLE status code.

getIsListening

public boolean getIsListening()

Set to false if the device connects to us, or true if we connect to it. If this is false, then it is equivalent to setting TransactionManager::DEVICE_LISTEN_KEY to the ENABLED_VALUE, because if this is false, then the PSDK must listen for the device.

getLogicalDeviceId

public String getLogicalDeviceId()

The device ID assigned by the terminal management system or some similar system. Useful for support.

getMacAddress

public String getMacAddress()

The mac address value.

getMerchantConfig

public ArrayList<Merchant> getMerchantConfig()

List of Merchants supported by the terminal

getModel

public String getModel()

The model of the device, e.g., M440.

getPaymentAppName

public String getPaymentAppName()

The name of the payment app, generally specific to the region.

getPaymentAppVersion

public String getPaymentAppVersion()

The version of the payment app, generally specific to the region, and may or may not follow a normal versioning convention.

getPaymentProtocol

public String getPaymentProtocol()

The Payment Protocol in use for payment operations.

getSerialNumber

public String getSerialNumber()

The serial number or hardware device ID associated with the device.

getState

public PaymentDeviceState getState()

The current or most recently known state of the payment device

toString

public String toString()