Skip to content

normaliseBankAccount

normaliseBankAccount(bankCode, accountNo): NormalisedRecipient

Defined in: payload/dist/recipient.d.ts:35

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.

string

string

NormalisedRecipient

normaliseBankAccount('014', '1234567890')
// → { subTag: '04', value: '0141234567890', type: 'bankAccount' }