Closed melyndav closed 2 days ago
Related issue: #2963
Two things here:
@rdig good point. We will confirm with the API what the validation for the spec.
I have run a couple of tests on the API, and it seems as though the API requirements are:
This seems only relevant for iban.account_number
and iban.bic
. Spaces did not seem to be an issue for US accounts.
There's 3 things to consider here:
Because in the end it only matters what we want to validate against, since we can have a setup like this:
As long as we come up with specs for validation, we're all good to go
@rdig Great, that gives us more freedom on our side. He is the spec.
Account type: US
Account type: IBAN
Account type: Swift
Just a small heads up that ISO 13616-1:2007
is the old, deprecated version, the current one is ISO 13616-1:2020
(the one I linked to above)
As far as I can tell the actual IBAN format hasn't changed between the revisions, but better to use the current one to avoid confusion
Good pickup, I have updated it.
@arrenv Spotted this while testing #3474, shouldn't both the account and routing numbers be digits only? From my research letters are not allowed.
Thanks @jakubcolony, looks like a fell victim to some lazy copy and paste. Fixed now.
I have also added the SWIFT one.
Description
There is no validation on incorrect formatting for the IBAN input field when the CTA button is selected, and only shows after it's been selected with a toast, which is inconsistent with the rest of the validation UX and does not indicate to the user what specifically the issue is and how to resolve it.
Example: When I enter (dummy data for screenshot purposes) IBAN details in that follow the format from my bank which includes spacing, no validation is shown upon selecting the CTA:
Toast with generic error:
However, if I input the incorrect SWIFT format, validation is provided.
Scope:
Add validation to match the accepted IBAN format from the API (no spacing between numbers and digits). Add inline to the form when the CTA is selected to ensure consistency in the error state UX.
Remove the toast validation.
All updates should be made across all responsive sizes.