ข้ามไปยังเนื้อหา

FormatAmountOptions

Defined in: payload/dist/amount.d.ts:9

Amount formatting for tag 54 (Transaction Amount).

EMVCo allows up to 13 chars including the decimal point — Thai banks cap the integer part at 10 digits + 2 decimals. We accept either a number (in baht) or a satang-int + flag, and always emit 2 decimals because that’s what every Thai banking app re-displays consistently.

optional fromSatang?: boolean

Defined in: payload/dist/amount.d.ts:11

When true, treat the input as integer satang (1 baht = 100 satang).