normaliseRecipient
normaliseRecipient(
raw,explicit?):NormalisedRecipient
Defined in: payload/dist/recipient.d.ts:24
Decide the recipient type from the digit count, then format the wire
value. Explicit type arg overrides the inference — useful if a
national ID happens to look like a long e-wallet id or vice versa.
Pass 'bankAccount' to normaliseBankAccount instead; it needs two
pieces (bank code + account number) the single-string form can’t carry.
Parameters
Section titled “Parameters”string
explicit?
Section titled “explicit?”"mobile" | "nationalId" | "eWallet"