mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 02:28:08 -05:00
TranslatePinData binds a format 0 or 3 PIN block to the twelve-digit account field, the twelve right-most digits of the account number without its check digit, and a caller holding the block sends that field as PrimaryAccountNumber. A twelve-digit value was read as a PAN whose check digit was dropped, so the derived field was one digit short and the block did not decipher. For the formats 0 and 3 a twelve-digit value is now the field itself, while format 4, which binds the PIN to the whole PAN, reads it as a PAN as before; the Visa verification value follows the same reading. A request whose translation attributes name no account number is refused with ValidationException instead of throwing. Closes #10077