android - Validate IBAN using org.apache.commons.validator -
in android project have edittext user can insert iban
i validate iban this, using org.apache.commons.validator
ibancheckdigit ibancheckdigit = new ibancheckdigit(); boolean validiban = ibancheckdigit.isvalid(textiban.gettext().tostring());
but 'isvalid" returns true when write things "jjjhh" or "asdasd" there better way validate iban ?
ibancheckdigit not check format of iban number, check digits. iban length, structure, etc. you. alternative, use iban4j validates structure, length, etc. too.
Comments
Post a Comment