Detectar marca de tarjeta
card-brand-detectDetecta la franquicia de una tarjeta por su prefijo, valida longitud y Luhn y devuelve el número enmascarado. No guarda nada ni prueba que la tarjeta exista. Cuándo: hay que verificar sin conexión el formato y el dígito de control de un identificador antes de usarlo. No para: validar un número con el algoritmo de Luhn (luhn-validate). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Detects a payment card brand from its IIN prefix (Visa, Mastercard, Amex, Diners, Discover, JCB, UnionPay, Maestro, Elo, Hipercard, Mir), checks length and Luhn, and returns only a masked number. Nothing is stored; this does not prove the card exists. When: an identifier's format and check digit have to be verified offline before it is used. Not for: validating a number with the Luhn mod-10 checksum (luhn-validate). [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Card number (PAN) (string; required; up to 40 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | ||
| masked | No | ||
| luhn_valid | No | ||
| valid_length | No |