Visa card number
ID bankcard_visa
Pattern of bankcardPersonal data (PII)identifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Primary account number of a Visa card. Visa numbers start with 4 and have 13, 16 or 19 digits; the last digit is a Luhn check digit. The pattern accepts the number without spaces or hyphens.
- Pattern of
- Bank card (credit/debit card)
bankcard - Categories
- Personally identifiable information, Finances and banking
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Check digit
luhn- Quality
- 85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- Cloudflare DLP, Datadog Sensitive Data Scanner, pyWhat, validator.js
Regular expression
^4(?:[0-9]{12}|[0-9]{15}|[0-9]{18})$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 4242424242424242 | Stripe test card number |
| 4111111111111111 | Braintree test card number |
| 5555555555554444 invalid | Mastercard test number |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Payment_card_number
- doc: https://docs.stripe.com/testing
- doc: https://developer.paypal.com/braintree/docs/reference/general/testing/node
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/bankcard_visa - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/finances/bankcard_visa.yamlon GitHub