You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Amit Gadaley (JIRA)" <ji...@apache.org> on 2017/09/23 11:38:00 UTC

[jira] [Updated] (OFBIZ-9761) Update regex used for validating credit cards

     [ https://issues.apache.org/jira/browse/OFBIZ-9761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amit Gadaley updated OFBIZ-9761:
--------------------------------
    Description: 
Update regex used for validating credit cards:

MasterCard numbers either start with the numbers 51 through 55 or with the numbers 2221 through 2720. All have 16 digits.

Discover card numbers begin with 6011 or 65. All have 16 digits.

JCB cards beginning with 2131 or 1800 have 15 digits. JCB cards beginning with 35 have 16 digits.

  was:
Update regex used for validating credit cards:

All Visa card numbers start with a 4. New cards have 16 digits. Old cards have 13.

MasterCard numbers either start with the numbers 51 through 55 or with the numbers 2221 through 2720. All have 16 digits.

American Express card numbers start with 34 or 37 and have 15 digits.

Diners Club card numbers begin with 300 through 305, 36 or 38. All have 14 digits. There are Diners Club cards that begin with 5 and have 16 digits. These are a joint venture between Diners Club and MasterCard and should be processed like a MasterCard.

Discover card numbers begin with 6011 or 65. All have 16 digits.

JCB cards beginning with 2131 or 1800 have 15 digits. JCB cards beginning with 35 have 16 digits.


> Update regex used for validating credit cards 
> ----------------------------------------------
>
>                 Key: OFBIZ-9761
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9761
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Amit Gadaley
>            Assignee: Amit Gadaley
>             Fix For: Trunk
>
>
> Update regex used for validating credit cards:
> MasterCard numbers either start with the numbers 51 through 55 or with the numbers 2221 through 2720. All have 16 digits.
> Discover card numbers begin with 6011 or 65. All have 16 digits.
> JCB cards beginning with 2131 or 1800 have 15 digits. JCB cards beginning with 35 have 16 digits.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)