Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit generated Discover cards to 19 digits #2845

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Conversation

jamie
Copy link
Contributor

@jamie jamie commented Oct 30, 2023

Motivation / Background

Discover cards explicitly support up to 19-digit card numbers, and the current generators for 20-digit card numbers wind up generating invalid numbers that eg. are not correctly detected as Discover cards according to ActiveMerchant.

Additional information

Discover IIN Range Summary

Merchants, Acquirers, and Processors must support between a minimum 14-digit (for the 36xx IIN Range) and up to 19-digit Primary Account Numbers (PANs)

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]

Copy link
Contributor

@thdaraujo thdaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, thanks!

@thdaraujo thdaraujo merged commit 22ef279 into faker-ruby:main Nov 21, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants