UNPKG

@paybyrd/card-collect

Version:

Paybyrd's tool to aid in the creation of credit card info collect forms

9 lines (8 loc) 517 B
import { ValidateFieldsProps, ErrorData, GenerateErrorProps } from '../types/types'; export declare const regexOnlyNumbers: (value: string) => string; export declare const validateFields: ({ holderValue, cardValue, dateValue, cvvValue }: ValidateFieldsProps) => { isValid: boolean; errors: Record<string, ErrorData>; }; export declare const clearValidations: (fields: Array<HTMLElement | null>) => void[]; export declare const generateError: ({ field, displayErrors, errorData }: GenerateErrorProps) => void;