Skip to content

@checkout-kit/core / parseExpiry

Variable: parseExpiry ​

ts
const parseExpiry: (value, options?) => ExpiryResult;

MM / YY, the way it is printed on the card. Accepts any separator, or none.

Parameters ​

ParameterType
valuestring
options?ParseExpiryOptions

Returns ​

ExpiryResult

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