Validate Card Number
validate_card_numberValidate a credit card number via the Luhn checksum. Input digits only, 8–19 characters.
Instructions
Checks whether a card number passes the Luhn checksum algorithm. Accepts digits only (spaces/dashes should be stripped by the caller).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardNumber | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes |