Guide to Patch 7.0.5

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Crazziee
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Tue May 17, 2011 4:02 pm

Guide to Patch 7.0.5

Post by Crazziee » Wed May 24, 2017 1:11 am

Does anyone have a guide to patch 7.0.5 for the new MasterCard/PayPal changes?

Basically how is anyone handling this if they are running 7.0.5 http://help.ablecommerce.com/upgrades/a ... atches.htm

thanks,

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

Re: Guide to Patch 7.0.5

Post by Katie » Wed May 24, 2017 5:29 am

Hi,
Take a look here:
viewtopic.php?f=65&t=19075

Please see Judy's post on May 17th. She can probably help you with the changes.

Thanks
Katie
Thank you for choosing AbleCommerce!

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

Crazziee
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Tue May 17, 2011 4:02 pm

Re: Guide to Patch 7.0.5

Post by Crazziee » Wed May 24, 2017 5:50 am

thanks, but I was looking for a way to do it without having to purchase a patch.

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

Re: Guide to Patch 7.0.5

Post by Katie » Wed May 24, 2017 6:17 am

Well, there is a significant cost to keeping the software updated to meet the ever-changing requirements. PayPal will eventually stop working without an upgrade, and the validation for MC could be fixed if you have the source code.

You could also consider investing in an upgrade to the latest version of Gold.

Thanks
Katie
Thank you for choosing AbleCommerce!

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

Crazziee
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Tue May 17, 2011 4:02 pm

Re: Guide to Patch 7.0.5

Post by Crazziee » Thu May 25, 2017 5:41 am

Katie wrote:
You could also consider investing in an upgrade to the latest version of Gold.

Thanks
Katie
That's the plan, This is only for the interim, And Yes I do have the source code.

thanks,

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

Re: Guide to Patch 7.0.5

Post by Katie » Thu May 25, 2017 6:35 am

The Mastercard change was limited to /CommerceBuilder.UI/WebControls/CreditCardValidator.cs

Find these lines of code:

Code: Select all

case CardType.MasterCard:
// MasterCard -- 51 through 55 -- 16 length
Change from:

Code: Select all

return ((cardNumber.Length == 16) && (Regex.IsMatch(cardNumber, "^(51|52|53|54|55)")));
Change to:

Code: Select all

return ((cardNumber.Length == 16) && (Regex.IsMatch(cardNumber, "^(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)")));
This is documented for Gold, but it may be similar for AC7.0.5 if you can find the validation code.
Thank you for choosing AbleCommerce!

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

Crazziee
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Tue May 17, 2011 4:02 pm

Re: Guide to Patch 7.0.5

Post by Crazziee » Wed Aug 09, 2017 2:56 am

Thanks Katie, I ended up getting it patched with the help of Judy.

Post Reply