BOTBarcodeInput
Defined in: payload/dist/barcode.d.ts:21
Bank of Thailand 1D barcode (bill-payment, counter-scanned).
This is intentionally not part of the EMVCo TLV machinery in the rest
of the package. The BOT barcode is a |-led, \r-delimited ASCII
string scanned at bank counters and 7-Eleven cashier stations for
over-the-counter bill payments — not a QR, not TLV, no CRC. It shares
the cross-bank biller-id concept with EMVCo tag 30 but the wire
format is otherwise unrelated, so it lives in its own module to keep
the TLV builder + parser tree-shake cleanly when callers only need
one or the other.
Wire shape: |<billerId>\r<ref1>\r<ref2>\r<amount>
- leading pipe is a fixed sentinel
- billerId is 15 chars (Tax ID + suffix), zero-padded if shorter
- ref1 is mandatory (customer/invoice number)
- ref2 may be the empty string if unused
- amount is integer satang (baht × 100), or the literal “0” when the cashier is expected to key the amount in by hand
Properties
Section titled “Properties”amount?
Section titled “amount?”
optionalamount?:number
Defined in: payload/dist/barcode.d.ts:32
Baht amount. Omit (or pass undefined) for a counter-keyed total —
the literal “0” is then written and the cashier types the amount.
billerId
Section titled “billerId”billerId:
string
Defined in: payload/dist/barcode.d.ts:23
Cross-bank biller id (Tax ID + suffix). ≤ 15 chars, zero-padded on emit.
ref1:
string
Defined in: payload/dist/barcode.d.ts:25
Customer / invoice reference. Must be non-empty.
optionalref2?:string
Defined in: payload/dist/barcode.d.ts:27
Optional secondary reference. Empty string on the wire if omitted.