You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A possible improvement for the IBAN validation rule is a constructor parameter in which the consumer can set the one or multiple allowed countries of which the IBAN numbers are allowed.
$allowedCountries would allow setting one or multiple country codes for example:
$allowedCountries = [ 'NL', 'BE' ];
and thus an IBAN from DE would not be considered valid;
The default behavior would not change.
Potential QoL improvement, do something with the error message? Potentially return a message in the thought of "Only IBAN numbers from 'NL' and 'BE' are allowed to be used"?
The text was updated successfully, but these errors were encountered:
A possible improvement for the IBAN validation rule is a constructor parameter in which the consumer can set the one or multiple allowed countries of which the IBAN numbers are allowed.
Potential solution
$allowedCountries
would allow setting one or multiple country codes for example:and thus an IBAN from
DE
would not be considered valid;The default behavior would not change.
Potential QoL improvement, do something with the error message? Potentially return a message in the thought of "Only IBAN numbers from 'NL' and 'BE' are allowed to be used"?
The text was updated successfully, but these errors were encountered: