normaliseBankAccount
normaliseBankAccount(
bankCode,accountNo):NormalisedRecipient
Defined in: recipient.ts:96
Format a bank-account recipient for sub-tag 04 under the PromptPay merchant template. The wire value is the 3-digit bank code followed by the (variable-length, numeric) account number; total length must fit EMVCo’s 1–43-character cap on the sub-tag.
Parameters
Section titled “Parameters”bankCode
Section titled “bankCode”string
accountNo
Section titled “accountNo”string
Returns
Section titled “Returns”Example
Section titled “Example”normaliseBankAccount('014', '1234567890') // → { subTag: '04', value: '0141234567890', type: 'bankAccount' }