withCardBrand

Updates the security code field state when a new card brand is detected in the card number field.

Example usage:

LaunchedEffect(cardNumberFieldState.cardBrand) {
cvcState = cvcState.withCardBrand(cardNumberFieldState.cardBrand)
}

Parameters

cardBrand

The card brand detected in VgsCardNumberTextFieldState