toFields method

Map<int, Object?> toFields({
  1. Uint8List? pinBlock,
})

The ISO fields a card-present message carries. Field 22 is the entry mode plus one digit: 1 when a PIN was entered, 2 when it was not.

Implementation

Map<int, Object?> toFields({Uint8List? pinBlock}) => <int, Object?>{
  22: "${entryMode.value}${pinBlock == null ? "2" : "1"}",
  35: track2,
  23: ?panSequenceNumber,
  if (iccData != null) 55: IsoUtil.hexString(iccData!),
  52: ?pinBlock,
};