You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
- Update `CardBrand`
- Update `CardBrand.DinersClub` to support 16-digit Diners Club cards
- Update Diners Club BIN range
- Card numbers starting with `"30"`, `"38"`, or `"39"` represent 16-digit Diners Club cards
- Card numbers starting with `"36"` represent 14-digit Diners Club cards
- Rename `maxLengthWithoutSpaces` to `defaultMaxLength`
- Rename `maxLengthWithSpaces` to `defaultMaxLengthWithSpaces`
- Create `getMaxLengthForCardNumber()` and `getMaxLengthWithSpacesForCardNumber()` to determine the max length based on the card number's prefix
- Update most tests to use `CardNumberFixtures`
Motivation
Fixes#2205
Testing
Add unit tests
Do you plan to add support for Diners Club cards with 16 digit PAN? (now only 14 digits are allowed)
The text was updated successfully, but these errors were encountered: