sdk/src/main/java/com/worldpay/cse/WPCardValidator.java
public Set<Integer> validateCardData(WPCardData cardData) {
        Set<Integer> errorsCodes = new HashSet<>();
        checkErrorCode(validateCardNumber(cardData.getCardNumber()), errorsCodes);
        checkErrorCode(validateCvc(cardData.getCvc()), errorsCodes);
        checkErrorCode(validateMonth(cardData.getExpiryMonth()), errorsCodes);
        checkErrorCode(validateYear(cardData.getExpiryYear()), errorsCodes);
        checkErrorCode(validateDate(cardData.getExpiryMonth(), cardData.getExpiryYear()), errorsCodes);
        checkErrorCode(validateCardHolderName(cardData.getCardHolderName()), errorsCodes);
        return errorsCodes;
    }
/**
     * Validates card data.
     *
     * @param cardData the card data object
     * @return the list of error codes
     */
Validates card data.
@param cardData the card data object
@return the list of error codes
Validates card data . @param cardData the card data object @return the list of error codes
public Set<Integer> validateCardData(WPCardData cardData) {
        Set<Integer> errorsCodes = new HashSet<>();
        checkErrorCode(validateCardNumber(cardData.getCardNumber()), errorsCodes);
        checkErrorCode(validateCvc(cardData.getCvc()), errorsCodes);
        checkErrorCode(validateMonth(cardData.getExpiryMonth()), errorsCodes);
        checkErrorCode(validateYear(cardData.getExpiryYear()), errorsCodes);
        checkErrorCode(validateDate(cardData.getExpiryMonth(), cardData.getExpiryYear()), errorsCodes);
        checkErrorCode(validateCardHolderName(cardData.getCardHolderName()), errorsCodes);
        return errorsCodes;
    }
public Set < Integer > validateCardData ( WPCardData cardData ) { Set < Integer > errorsCodes = new HashSet < > ( ) ; checkErrorCode ( validateCardNumber ( cardData . getCardNumber ( ) ) , errorsCodes ) ; checkErrorCode ( validateCvc ( cardData . getCvc ( ) ) , errorsCodes ) ; checkErrorCode ( validateMonth ( cardData . getExpiryMonth ( ) ) , errorsCodes ) ; checkErrorCode ( validateYear ( cardData . getExpiryYear ( ) ) , errorsCodes ) ; checkErrorCode ( validateDate ( cardData . getExpiryMonth ( ) , cardData . getExpiryYear ( ) ) , errorsCodes ) ; checkErrorCode ( validateCardHolderName ( cardData . getCardHolderName ( ) ) , errorsCodes ) ; return errorsCodes ; }
Validates card data.
Validates card data .