Skip to content

Commit d8de0b4

Browse files
author
Viktor Tymchynskyi
committed
Merge remote-tracking branch 'origin/MAGETWO-51834' into MPI-BUGFIXES
2 parents 0753dfd + 6958587 commit d8de0b4

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ public function validate()
144144
'|8[6-9][0-9]{10}|9[0-9]{11})|62(2(12[6-9][0-9]{10}|1[3-9][0-9]{11}|[2-8][0-9]{12}' .
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}))$/',
147+
'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*$/',
147149
];
148150

149151
$ccNumAndTypeMatches = isset(
@@ -213,6 +215,8 @@ public function getVerificationRegEx()
213215
'SO' => '/^[0-9]{3,4}$/',
214216
'OT' => '/^[0-9]{3,4}$/',
215217
'JCB' => '/^[0-9]{3,4}$/',
218+
'MI' => '/^[0-9]{3}$/',
219+
'MD' => '/^[0-9]{3}$/',
216220
];
217221
return $verificationExpList;
218222
}

0 commit comments

Comments
 (0)