public boolean validateCardNumber ( ) { boolean cardNumberIsValid = CardUtils . isValidCardNumber ( mCardNumberEditText . getCardNumber ( ) ) ; mCardNumberEditText . setShouldShowError ( ! cardNumberIsValid ) ; return cardNumberIsValid ; }
Checks whether the current card number is valid