CRM-19283 Support new Mastercard 2-series BIN numbers

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      MasterCard has announced that they will add a new 2 series BIN range effective October 2016. The BIN range (222100-272099) will be processed with and in the same manner as the existing 51-55 BIN range (510000- 559999).

      See https://www.mastercard.com.au/en-us/issuers/get-support/2-series-bin-expansion.html

      CiviContribute currently cannot process these new card numbers.

        Attachments

          Activity

          [CRM-19283] Support new Mastercard 2-series BIN numbers
          Andrew Cormick-Dockery added a comment -

          There are two places which require updating: the Javascript which determines which card type on the Contribution Page; as well as a Pear credit card validation library.

          Here is the PR for the Javascript change: https://github.com/civicrm/civicrm-core/pull/8959
          I have also submitted an upstream pull request for pear/Validate_Finance_CreditCard: https://github.com/pear/Validate_Finance_CreditCard/pull/3
          The latter is the change required for a single line of this file: https://github.com/civicrm/civicrm-packages/blob/master/Validate/Finance/CreditCard.php#L181

          Andrew Cormick-Dockery added a comment -

          Here's the related Pear ticket: http://pear.php.net/bugs/bug.php?id=21044

          Mathieu Lutfy added a comment - - edited

          This PR was merged ~ 20 days ago: https://github.com/civicrm/civicrm-core/pull/8959

          Does this mean this issue will be fixed in 4.7.13 ?

          edit: PEAR also merged the patch, but it's not clear if they will have a new release in time for 4.7.13?

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrew Cormick-Dockery

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified