Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-415

Simplify building new CreditCard validators

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6
    • None
    • None

    Description

      Credit card validators currently rely on regexes.
      Whilst these are flexible enough for the purpose, it is difficult to define the REs and hard to read them.

      It would be simpler if the user could provide the prefix ranges and lengths, for example:

      Amex: "34", length 15
      Discover: "644" -> "65", length 16

      (both the above have other ranges which would need to be provided separately)

      This can then be converted internally into the appropriate validation routines.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment