Skip to content

Add Credit Card Number Validation Functionality #81

@vitochillsme-boop

Description

@vitochillsme-boop

Implement a function that validates credit card numbers using the Luhn algorithm.

Requirements:

  • Accepts a credit card number as input (string or integer).
  • Validates the number using the Luhn algorithm.
  • Returns a boolean indicating validity.

Background:
Credit card validation is a common requirement for payment processing and user input verification. The Luhn algorithm is the industry standard for verifying the structure of card numbers before further processing.

Acceptance Criteria:

  • The validation function is added to the codebase (e.g., cc_validation.py).
  • Include basic unit tests demonstrating the function works with valid and invalid card numbers.

No template was found in this repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions