Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

JCB cards incorrectly validated #10

@ssathy2

Description

@ssathy2

A few resources (https://www.cybersource.com/developers/getting_started/test_and_manage/best_practices/card_type_id/, https://www.freeformatter.com/credit-card-number-generator-validator.html, https://en.wikipedia.org/wiki/Payment_card_number) on credit card validation mention that JCB cards have IIN ranges of 3528–3589. Currently, the regex that the library to validate JCB cards is "^(?:2131|1800|35[0-9]{3})[0-9]{3,}$". This means that a card starting with 3510 will get validated as a JCB card.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmore-infoMore information required

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions