MasterCard New 2 Series BIN Cards

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

MasterCard New 2 Series BIN Cards

Post by jguengerich » Tue May 17, 2016 9:45 am

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?
Jay

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: MasterCard New 2 Series BIN Cards

Post by Katie » Tue May 17, 2016 12:33 pm

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: MasterCard New 2 Series BIN Cards

Post by jguengerich » Tue May 17, 2016 4:12 pm

This was the email:
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
I can't find much about it on MasterCard's own site, only this pdf which lists the same range as valid BIN numbers:
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

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: MasterCard New 2 Series BIN Cards

Post by Katie » Wed May 18, 2016 3:56 am

Thanks Jay.

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

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: MasterCard New 2 Series BIN Cards

Post by jguengerich » Wed May 18, 2016 4:25 am

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
Last edited by jguengerich on Thu May 19, 2016 3:12 am, edited 1 time in total.
Jay

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: MasterCard New 2 Series BIN Cards

Post by jguengerich » Wed May 18, 2016 5:10 am

This is my first attempt at regex, but I think the required regex that would have to be added for validating these numbers is:

Code: Select all

^(222[1-9]|22[3-9][0-9]|2[3-6][0-9][0-9]|27[0-1][0-9]|2720)
Any regex experts out there care to comment :) ?
Jay

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: MasterCard New 2 Series BIN Cards

Post by Naveed » Tue May 31, 2016 2:44 am

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)

User avatar
AnySupport
Lieutenant (LT)
Lieutenant (LT)
Posts: 73
Joined: Fri Feb 17, 2012 8:58 am

Re: MasterCard New 2 Series BIN Cards

Post by AnySupport » Tue Jul 12, 2016 4:01 am

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? )

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: MasterCard New 2 Series BIN Cards

Post by Katie » Tue Jul 12, 2016 4:14 am

Yes, of course we will be releasing hot patches for all versions of AbleCommerce Gold.

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
AnySupport
Lieutenant (LT)
Lieutenant (LT)
Posts: 73
Joined: Fri Feb 17, 2012 8:58 am

Re: MasterCard New 2 Series BIN Cards

Post by AnySupport » Tue Jul 12, 2016 5:27 am

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!!

Post Reply