validateCVV method

ValidationResults validateCVV(
  1. String cvv,
  2. CreditCardType cardType
)

Validates the security code based on the length of the code in conjunction with the type of card

Implementation

ValidationResults validateCVV(String cvv, CreditCardType cardType) {
  return validateSecurityCode(cvv.trim(), cardType);
}