Skip to content

@checkout-kit/core / luhn

Variable: luhn ​

ts
const luhn: (digits) => boolean;

The check digit every card number carries. Catches a mistyped digit, not a stolen card.

Parameters ​

ParameterType
digitsstring

Returns ​

boolean

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