buildBOTBarcode
buildBOTBarcode(
input):string
Defined in: payload/dist/barcode.d.ts:59
Build a BOT 1D bill-payment barcode payload.
Throws TypeError / RangeError for malformed input — the caller
never silently produces an unscannable barcode.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string
Examples
Section titled “Examples”buildBOTBarcode({ billerId: '099999999999990', ref1: '111222333444' }) // → '|099999999999990\r111222333444\r\r0'buildBOTBarcode({ billerId: '099400016550100', ref1: '123456789012', ref2: '670429', amount: 3649.22, }) // → '|099400016550100\r123456789012\r670429\r364922'