Skip to content

Commit 6958587

Browse files
committed
MAGETWO-51834: Maestro credit cards doesn't pass validation on server side
1 parent d2c05b3 commit 6958587

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Payment/Model/Method

1 file changed

+1
-1
lines changed

app/code/Magento/Payment/Model/Method/Cc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function validate()
145145
'|9[0-1][0-9]{11}|92[0-5][0-9]{10})|[4-6][0-9]{13}|8[2-8][0-9]{12})|6(4[4-9][0-9]{13}' .
146146
'|5[0-9]{14}))$/',
147147
'MI' => '/^(5(0|[6-9])|63|67(?!59|6770|6774))\d*$/',
148-
'MD' => '/^6759(?!24|38|40|6[3-9]|70|76)|676770|676774\d*$/',
148+
'MD' => '/^(6759(?!24|38|40|6[3-9]|70|76)|676770|676774)\d*$/',
149149
];
150150

151151
$ccNumAndTypeMatches = isset(

0 commit comments

Comments
 (0)