formatCardNumber

fun formatCardNumber(cardNumber: String): String

Format a card number based on the rules of the brands selected

Return

String with the correct format for the card number

Parameters

cardNumber

to be formatted