luhn_validate
Run the Luhn checksum on a numeric string such as a payment-card-like identifier to verify the check digit before accepting or storing the value.
Use when:
Does this number pass a Luhn check?
Validate a payment-card-like identifier checksum
Verify a numeric ID that uses a Luhn check digit
Do not use when:
Charge a card, tokenize payments, or call a payment processor
Validate ISBNs (use isbn_validate) or UUIDs (use uuid_validate)
Look up currency metadata (use currency_lookup)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Numeric string to validate with Luhn |