MasterCard New 2 Series BIN Cards
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
MasterCard New 2 Series BIN Cards
Combination FYI to developers and question for AbleCommerce. We got a reminder from CyberSource today that starting in October, MasterCard PANs in the 222100-272099 BIN range must be accepted (in addition to the current 5 series BINs). They say their platform has already been updated.
I looked around at the AbleCommerce code, and there is a file at \CommerceBuilder.UI\WebControls\CreditCardValidator.cs that has a function for determining if the card type is valid, given a card number. It does not check for 2-series BINs. However, it does not look like this function is called anywhere in the as-shipped source or site code. It would probably be good to have it updated, though, in case anyone decides to use it. Will AbleCommerce be updating this code?
I looked around at the AbleCommerce code, and there is a file at \CommerceBuilder.UI\WebControls\CreditCardValidator.cs that has a function for determining if the card type is valid, given a card number. It does not check for 2-series BINs. However, it does not look like this function is called anywhere in the as-shipped source or site code. It would probably be good to have it updated, though, in case anyone decides to use it. Will AbleCommerce be updating this code?
Jay
Re: MasterCard New 2 Series BIN Cards
Hi Jay,
Do you have a link to the Cybersource notice that we can reference? It sounds like something we need to address.
Thanks,
Katie
Do you have a link to the Cybersource notice that we can reference? It sounds like something we need to address.
Thanks,
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: MasterCard New 2 Series BIN Cards
This was the email:
https://www.mastercard.us/content/dam/m ... h-2016.pdf
and a portal for ordering test cards:
https://www.mctestcards.com/
Googling MasterCard 2 series BIN returns lots of hits.
It doesn't sound like anything will change on the processing API side of things; it's just making sure if you validate the number before sending it you allow the 2-series numbers.
I can't find much about it on MasterCard's own site, only this pdf which lists the same range as valid BIN numbers:Dear Merchant,
Starting October 2016, payments ecosystem must be ready to support the 2 Series MasterCard BINs.
MasterCard transactions on primary account numbers (PANs) in the 222100-272099 BIN range must be accepted, routed, and processed in the same manner as the PANs within the existing 5 series range. MasterCard rules that apply to the existing 5 series BINs will be applicable to the 2 series BINs.
The CyberSource platform has been updated to support the MasterCard 2 Series BIN range. This change will have no impact on our merchant integration.
By October 2016, you will be required by MasterCard to accept the new 2 series BIN cards and recognize those as MasterCard transactions in both card-present and card-not present channels.
If you have any questions, please contact CyberSource Customer Support for assistance.
Kind Regards,
CyberSource
https://www.mastercard.us/content/dam/m ... h-2016.pdf
and a portal for ordering test cards:
https://www.mctestcards.com/
Googling MasterCard 2 series BIN returns lots of hits.
It doesn't sound like anything will change on the processing API side of things; it's just making sure if you validate the number before sending it you allow the 2-series numbers.
Jay
Re: MasterCard New 2 Series BIN Cards
Thanks Jay.
I'll get this reported to development.
Appreciate that you let us know in advance!
Katie
I'll get this reported to development.
Appreciate that you let us know in advance!
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: MasterCard New 2 Series BIN Cards
Oops, I was wrong, it is used in the as-shipped site code. I was searching for the function name rather than the CreditCardValidator class name. For R12, the CreditCardValidator is used in:
\Admin\Orders\Create\CreditCardPaymentForm.ascx
\Admin\Orders\Payments\ucProcessPayment.ascx
\ConLib\Account\EditSubscriptionDetails.ascx
\ConLib\Checkout\PaymentForms\CreditCardPaymentForm.ascx
\Install\BuildOrders.ashx
\Members\PaymentTypes.aspx
\Mobile\Members\PaymentTypes.aspx
\Mobile\UserControls\Checkout\PaymentForms\CreditCardPaymentForm.ascx
\Admin\Orders\Create\CreditCardPaymentForm.ascx
\Admin\Orders\Payments\ucProcessPayment.ascx
\ConLib\Account\EditSubscriptionDetails.ascx
\ConLib\Checkout\PaymentForms\CreditCardPaymentForm.ascx
\Install\BuildOrders.ashx
\Members\PaymentTypes.aspx
\Mobile\Members\PaymentTypes.aspx
\Mobile\UserControls\Checkout\PaymentForms\CreditCardPaymentForm.ascx
Last edited by jguengerich on Thu May 19, 2016 3:12 am, edited 1 time in total.
Jay
-
- Commodore (COMO)
- Posts: 436
- Joined: Tue May 07, 2013 1:59 pm
Re: MasterCard New 2 Series BIN Cards
This is my first attempt at regex, but I think the required regex that would have to be added for validating these numbers is:
Any regex experts out there care to comment
?
Code: Select all
^(222[1-9]|22[3-9][0-9]|2[3-6][0-9][0-9]|27[0-1][0-9]|2720)

Jay
Re: MasterCard New 2 Series BIN Cards
Thanks Jay for posting the Regex, it covers the new 2 series but we also need to validate the existing number series as well. Here is the updated Regex to cover all the ranges for master card:
Code: Select all
^(51|52|53|54|55|222[1-9]|22[3-9][0-9]|2[3-6][0-9][0-9]|27[0-1][0-9]|2720)
Thanks for your support
Naveed Ashraf
.com
AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
Naveed Ashraf

AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
- AnySupport
- Lieutenant (LT)
- Posts: 73
- Joined: Fri Feb 17, 2012 8:58 am
Re: MasterCard New 2 Series BIN Cards
Hello,
Since this is universal and not limited to a particular gateway, I'm guessing that the change impacts multiple spots in the system.
Is this something that will be a hot fix or patch release to past releases as well? (Such as R9? She asks hopefully)
Or will we all need to find and customize all the spots?
Thank you!
Elizabeth
( This was announced in May 2015, if not earlier, so only a little after R9 was released? )
Since this is universal and not limited to a particular gateway, I'm guessing that the change impacts multiple spots in the system.
Is this something that will be a hot fix or patch release to past releases as well? (Such as R9? She asks hopefully)
Or will we all need to find and customize all the spots?
Thank you!
Elizabeth
( This was announced in May 2015, if not earlier, so only a little after R9 was released? )
Re: MasterCard New 2 Series BIN Cards
Yes, of course we will be releasing hot patches for all versions of AbleCommerce Gold.
Thanks,
Katie
Thanks,
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
- AnySupport
- Lieutenant (LT)
- Posts: 73
- Joined: Fri Feb 17, 2012 8:58 am
Re: MasterCard New 2 Series BIN Cards
Ok great. Thank you! I just didn't want to assume and then realize it's only be a patch for newer ones and guidelines for older or something like that. Thank you!!