7.8 Sample Project Tutorial
description)
return;
}
if emvData.resultCodeV2 != EMV_RESULT_CODE_V2_NO_RESPONSE {
appendMessageToLog("EMV_RESULT_CODE_V2_RESPONSE: "
}
if
emvData.resultCodeV2 == EMV_RESULT_CODE_V2_GO_ONLINE {
appendMessageToLog("ONLINE
}
if
emvData.resultCodeV2 == EMV_RESULT_CODE_V2_START_TRANS_SUCCESS {
appendMessageToLog("Start success: authentication
}
if
emvData.resultCodeV2 == EMV_RESULT_CODE_V2_APPROVED || emvData.resultCodeV2 ==
EMV_RESULT_CODE_V2_APPROVED_OFFLINE {
appendMessageToLog("APPROVED");
}
if
emvData.resultCodeV2 == EMV_RESULT_CODE_V2_MSR_SUCCESS {
appendMessageToLog("MSR Data
}
if
emvData.cardType == 0 {
appendMessageToLog("CONTACT")
}
if
emvData.cardType == 1 {
appendMessageToLog("CONTACTLESS")
}
if
emvData.unencryptedTags != nil {
appendMessageToLog("Unencrypted Tags: "
}
if
emvData.encryptedTags != nil {
appendMessageToLog("Encrypted Tags: "
}
if
emvData.maskedTags != nil {
appendMessageToLog("Masked Tags: "
}
if
emvData.hasAdvise {
appendMessageToLog("Response has advise
}
if
emvData.hasReversal {
appendMessageToLog("Response has reversal
}
}
• Implement protocol delegate lcdDisplay:() to receive LCD messages, and automatically select 1st menu
item/language when presented with choices. Normal operation would require a choice be made by card
holder. Reference:
func lcdDisplay(_ mode: Int32, lines: [AnyObject]!) {
var str =
""
if
lines != nil {
for
s in lines {
str += s as! String
str +=
}
}
switch
mode {
case
0x10:
lcdTextView.text =
case
0x03:
lcdTextView.text = str
case
0x01, 0x02, 0x08:
IDT_NEO2.sharedController().emv_callbackResponseLCD(mode, selection: 1)
default:
break
}
}
IDTech iOS SDK Guide for NEO2 #80152802-001
REQUEST")
Captured")
Implement Optional Delegate Protocols
" n"
""
+ String(describing: emvData.resultCodeV2))
required")
+ String(describing: emvData.unencryptedTags))
+ String(describing: emvData.encryptedTags))
+ String(describing: emvData.maskedTags))
request")
request")
55
Need help?
Do you have a question about the NEO2 and is the answer not in the manual?