setAllowableNumberLength

fun setAllowableNumberLength(length: IntArray, errorMsg: String = LengthMatchValidator.DEFAULT_ERROR_MSG): PaymentCardNumberRule.ValidationBuilder

Sets the allowable lengths.

Parameters

length

The allowable lengths.

errorMsg

The error message to display if validation fails.