@checkout-kit/core / formatCardNumber
Variable: formatCardNumber
ts
const formatCardNumber: (value, brand?) => string;Groups the digits the way the card is printed: 4-4-4-4, or 4-6-5 for Amex.
Parameters
| Parameter | Type |
|---|---|
value | string |
brand? | CardBrand |
Returns
string