Expand description
ECR17 application-message builders โ the bytes that go between STX and ETX.
Every field is fixed-width and validated: a value that overflows its field returns
Ecr17Error::FieldOverflow so a malformed frame is never produced. Ported from the
reference C++ Ecr17Protocol.
payment_type is the single request digit: '0' auto, '1' debit, '2' credit,
'3' other (see crate::types::PaymentCardType).
Functionsยง
- build_
additional_ tags - Additional data for GT / tokenization
'U'(variable). - build_
card_ verification - Card verification
'H'(39 bytes). - build_
close_ session - Close session
'C'(26 bytes). - build_
enable_ ecr_ print - Enable/disable ECR printing
'E'(11 bytes). - build_
extended_ payment - Extended payment
'X'(167 bytes). - build_
incremental - Incremental pre-auth
'i'(176 bytes). - build_
payment - Payment
'P'(167 bytes). - build_
pre_ auth - Pre-auth
'p'(167 bytes). - build_
pre_ auth_ closure - Pre-auth closure
'c'(176 bytes). - build_
reprint - Reprint ticket
'R'(22 bytes). - build_
reversal - Reversal
'S'(26 bytes);stan = "000000"reverses the last payment with no STAN check. - build_
send_ last_ result - Send last result
'G'(22 bytes). - build_
status - Status
's'(10 bytes; lowercase code per spec). - build_
totals - Totals
'T'(26 bytes). - build_
vas - VAS
'K'(variable, length-prefixed XML, max 1024 bytes). - format_
tokenization_ tag - Formats the TAG 5 content for tokenization (Intesa-style mapping):
"0COF0TRK<contract>|0FNZ03"(unscheduled/one-click) or"0REC0TRK<contract>|0FNZ03"(recurring).recurringselects0RECvs0COF.