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.


fun validateSecurityCode(securityCode: String, brand: DLCardBrand): Boolean

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

Return

Boolean result of the validation

Parameters

securityCode

to be validated

brand

DLCardBrand object against which to validate the security code.


fun validateSecurityCode(securityCode: String): Boolean

Validates if a String input is a valid security code for the given card brands. Validation will use the default Brand, which has a security code of only digits with minimum length of 3 and maximum of 4.

Return

Boolean result of the validation

Parameters

securityCode

to be validated