4 - IDevice
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 15
Return Value:
Returns
4.7
getDeviceInfo
This function returns an information class of the device.
DeviceInfo IDevice.getDeviceInfo();
Return Value:
Returns
4.8
Name
This function retrieves the name of the device.
String IDevice.Name();
Return Value:
Returns a string containing the device name.
4.9
requestPIN
This function prompts the user to enter a PIN on the device. The response data will be returned in the
event
. requestPin() is reserved for future use.
boolean IDevice.requestPIN(PINRequest pinRequest);
Parameter
Type
Description
Timeout
byte
Wait time in seconds.
PINMode
byte
PIN mode.
Usage:
0x00
- Enter PIN
0x01
- Enter PIN Amount
0x02
- Reenter PIN Amount
0x03
- Reenter PIN
0x04
- Verify PIN
MinLength
byte
Minimum length of accepted PIN (>= 4).
MaxLength
byte
Maximum length of accepted PIN (=< 12).
Tone
byte
Tone to play when prompting for the PIN.
Usage:
0x00
- No sound
0x01
- One beep
0x02
- Two beeps
Format
byte
ISO format for the PIN block.
PAN
String
The left most 12 digits of the Primary Account Number. Leave blank if
not required by the ISO format for the PIN block.