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

normaliseRecipient

normaliseRecipient(raw, explicit?): NormalisedRecipient

Defined in: recipient.ts:58

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.

string

"mobile" | "nationalId" | "eWallet"

NormalisedRecipient