Function isValidIBAN

  • Validate (German) IBAN

    If onlyGermany is true, it will return false for any IBAN not starting with "DE". If false, non-German IBAN will be verified but no national methods will be applied.

    IMPORTANT: A positive result does not does not necessarily mean that the account exists; it only checks for structure and check digit!

    Parameters

    • iban: ProbablyString

      German IBAN with 22 chars

    • onlyGermany: boolean = false

      Allow only German IBANs (default: false)

    Returns boolean

Generated using TypeDoc