Section 3. Commands
101
Read
Argument
Description
pin
Collect PIN from cardholder and read PIN data from the device.
The following properties may be set before issuing this command:
• account_no – cardholder account number, including check digit,
if required
• amount – transaction amount in cents, without punctuation, if
required
• enc_key – (MSK mode only) encryption key to use: M for master,
S for session, 0-3 for lower working keys, A-J for upper working keys.
• xact_type – (DUKPT mode only) transaction type: D for debit, C for
credit
The response will be: /read P000SS pin_block
SS is a two-digit status code:
00 – successful read
45 – enc_key is not defined
83 – aborted, etc.
pin_block is the encrypted PIN block as returned by the device.
Upon successful read, the following properties will be set:
• Visa_mac1, visa_mac2, visa_mac3 – message authentication
codes (DUKPT mode only)
• enc_key_sn – serial number of encryption key (DUKPT mode only)