validateSecurityCode

fun validateSecurityCode(securityCode: String, brands: List<DLCardBrand>?): Boolean

Validates if a String input is a valid security code for the given card brands.

Return

Boolean result of the validation

Parameters

securityCode

to be validated

brands

list of DLCardBrand against which to validate the security code. If brands list is empty or null, validation will use the default Brand, which has a security code of only digits with minimum length of 3 and maximum of 4.