validate

abstract fun validate(cvv: String, cardScheme: CardScheme): ValidationResult<Unit>

Validates the given cvv according to the cardScheme.

Return

ValidationResult with ValidationResult.Success or ValidationResult.Failure.

Parameters

cvv
  • The cvv number represented as String, should be digits only.

cardScheme