Skip to content

[Validator] Structure of BIC changed with ISO 9362:2022 #51975

@luxemate

Description

@luxemate

Symfony version(s) affected

all

Description

I have found some preview of the new standard, which can be interpreted as:

Party prefix is 4 upper-case alphanumeric characters (A to Z and 0 to 9 only)

We found out about the issue in production, because someone was tying to use an IBAN from UAE bank, which has BIC E097AEXXXXX.

How to reproduce

Use BIC E097AEXXXXX with the BicValidator.

Possible Solution

Use ctype_alnum for the first 4 characters.

Additional Context

Proof from iban.com

image

Element description from the updated standard

image

Conventions used in the format column

The following conventions are used in this document:

  1. character representations:
    • a: upper-case letters (alphabetical characters A to Z only);
    • n: digits (numeric characters 0 to 9 only);
    • c: upper-case alphanumeric characters (A to Z and 0 to 9 only).
  2. length indications:
    • nn!: fixed length;
    • nn: maximum length.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions