3 - MagneFlex Powder Resources
SDK - MagneFlex Powder, MIddleware,| PIN PEDs | Programmer’s Manual (MagneFlex API)
Page 17
Data
TLV data block to send to the device.
Data block must be formed as an F9 CBC-MAC container message.
Reference the device manual for details.
AAAA /* 2-byte MSB message length excluding
padding and CBC-MAC */
F9<len> /* container for MAC structure and generic
data */
DFDF55(MAC Encryption Type)<len><val>
DFDF25(IFD Serial Number)<len><val>
FA<len>/* container for generic data */
<tag><len><val>
...
<tag><len><val>
<Buffer if any to make blocks as multiple of 8
bytes>
<CBC-MAC (4 bytes, use MAC variant of AMK)>
RequestType
“SET”
for setting an EMV tag.
“GET”
for getting an EMV tag.
CloseDevice
Flag which determines whether the connection to the device will be closed
after the request is processed. Default value is “false”.
“false” = Do no close the device.
“true” = Close device.
EndSession
Flag which determines whether an EndSession command is sent to the
device after the request is processed. Default value is “false”. When set to
false, this flag may facilitate the display of a custom message after a
request is processed.
“false” = Do no end the session.
“true” = End the session.
Return Value:
The Card Swipe output.
{“CardSwipeOutput”: {}, “AdditionalOutputData”:{}}
3.4
RequestManualSwipe
Triggers the device to begin a manual card data entry.
Using Method POST:
api/mtppscrahost/RequestManualSwipe(
string DeviceID,
int WaitTime,
int Options,
int Tones,
boolean CloseDevice,
boolean EndSession);