Skip to content

@checkout-kit/core / CardBrandRule

Interface: CardBrandRule ​

Properties ​

PropertyModifierTypeDescription
brandreadonlyCardBrand-
cvcLengthsreadonlyreadonly number[]-
displayNamereadonlystring-
gapsreadonlyreadonly number[]Digit counts a space goes after: most cards group 4-4-4-4, Amex groups 4-6-5.
lengthsreadonlyreadonly number[]-
luhnreadonlyboolean-
rangesreadonlyreadonly readonly [number, number][]Leading digits compared as numbers: [51, 55] matches 51-55, [222100, 272099] on six.

Apache-2.0 · Headless engine, provider adapters and runnable examples.