clean-react-app icon indicating copy to clipboard operation
clean-react-app copied to clipboard

[FEATURE] Create Credit Card Validator

Open rubemfsv opened this issue 2 years ago β€’ 10 comments

Description

Checks credit card numbers for validity based on algorithms or by making test transactions (usually in a test environment).

Expected Behavior

The credit card validator should accurately validate credit card numbers by:

  1. Confirming that the provided input is a valid credit card number.
  2. Verifying that the credit card number complies with the format rules of major credit card networks (e.g., Visa, MasterCard, American Express).
  3. Applying the Luhn algorithm (modulus-10) to check the validity of the credit card number's checksum.
  4. Detecting and handling common credit card number formats and separators (spaces, dashes) to enhance user convenience.
  5. Returning a clear validation result, indicating whether the provided credit card number is valid or invalid.
  6. Providing additional information if applicable, such as the type of credit card network (Visa, MasterCard, etc.) detected.

This behavior ensures the credit card validator accurately assesses the legitimacy of credit card numbers, aiding in the prevention of erroneous or fraudulent card data being accepted within the system.

Additional Information

Consider implementing this validator along with a corresponding unit test in the "validators" directory, alongside the existing validators.

rubemfsv avatar Sep 30 '23 22:09 rubemfsv

Assign this to me to work on this. Thanks

Aaketk17 avatar Oct 01 '23 05:10 Aaketk17

@Aaketk17 done! Don't forget to ensure commit messages are following the conventional commits πŸ˜„

rubemfsv avatar Oct 01 '23 11:10 rubemfsv

@rubemfsv As I already got password validation task you can assign this task to @zainbinshakoor

Aaketk17 avatar Oct 02 '23 03:10 Aaketk17

@zainbinshakoor, do you want to do this one?

rubemfsv avatar Oct 02 '23 11:10 rubemfsv

can I do it?

ayushi-ras avatar Oct 02 '23 18:10 ayushi-ras

@ayushi-ras sure! Don't forget to ensure commit messages are following the conventional commits πŸ˜„

rubemfsv avatar Oct 02 '23 18:10 rubemfsv

can i take 2-3 days to do it? @rubemfsv

ayushi-ras avatar Oct 02 '23 18:10 ayushi-ras

@rubemfsv am already done this task another repo so I will see another one ☺️

zainbinshakoor avatar Oct 02 '23 18:10 zainbinshakoor

@zainbinshakoor give a look at the open issues in this repository: https://github.com/rubemfsv/Github-Explorer-Mobile-Clean-Architecture/issues

rubemfsv avatar Oct 02 '23 23:10 rubemfsv

can i take 2-3 days to do it? @rubemfsv

@ayushi-ras sure!

rubemfsv avatar Oct 03 '23 22:10 rubemfsv