13.11 IDTechEMV Class Reference
129
Returns
Instance of
13.11.2.22
- (void) startEMVTransaction: (float)
amount
timeout:(int)
timeout
transactionType:(int)
type
additionalTags:(NSMutableDictionary
∗
)
tags
Start EMV Transaction Request
Authorizes the EMV transaction amounts for an ICC card
The tags will be returned in the emvTransactionData delegate protocol.
Parameters
amount
Transaction amount value (tag value 9F02)
timeout
Timeout value in seconds.
type
Transaction Type.
tags
Any other optional tags to be included in the request. Passed as a mutable dictionary.
Converting TLV to NSMutableDictionary
EMV data is received in TLV (Tag, Length, value) format:
950500000080009B02E8009F2701018A025
←
-
A339F26080C552B9364D55CE5
This data contains the following EMV tags/values:
Tag
Length
Value
95
05
0000008000
9B
02
E800
9F27
01
01
8A
02
5A33
9F26
08
0C552B9364D55CE5
An example how to create an NSMutableDictionary with these values follows.
-(NSMutableDictionary*) createTLVDict{
NSMutableDictionary *emvTags = [[NSMutableDictionary alloc] initWithCapacity:0];
[emvTags setObject:
@"0000008000"
forKey:
@"95"
];
[emvTags setObject:
@"E800"
forKey:
@"9B"
];
[emvTags setObject:
@"01"
forKey:
@"9F27"
];
[emvTags setObject:
@"5A33"
forKey:
@"8A"
];
[emvTags setObject:
@"0C552B9364D55CE5"
forKey:
@"9F26"
];
return
emvTags;
}
13.11.3
Property Documentation
13.11.3.1
- (id
<
IDTechEMV_Delegate
>
) delegate
[read]
,
[write]
,
[atomic]
,
[strong]
• Reference to
The documentation for this class was generated from the following file:
IDTech iOS SDK Guide for NEO2 #80152802-001