...
Code Block | ||
---|---|---|
| ||
typeData?: { niceType: string; // Human-readable card type (e.g., "Visa") type: string; // Card type code patterns: number[] | [number[]]; // Valid number patterns gaps: number[]; // Positions of gaps in card number lengths: number[]; // Valid card number lengths code: { size: number; // CVV length name: string; // CVV field name (e.g., "CVV") }; matchStrength?: number; // Confidence of card type match }; |
...
type
strings
Code Block |
---|
| "american-express"
| "diners-club"
| "discover"
| "elo"
| "hiper"
| "hipercard"
| "jcb"
| "maestro"
| "mastercard"
| "mir"
| "unionpay"
| "visa"; |
niceType
strings
Code Block |
---|
| "American Express"
| "Diners Club"
| "Discover"
| "Elo"
| "Hiper"
| "Hipercard"
| "JCB"
| "Maestro"
| "Mastercard"
| "Mir"
| "UnionPay"
| "Visa"; |