File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/code/Magento/Payment/Model/Method Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,8 @@ public function validate()
144
144
'|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} ' .
145
145
'|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} ' .
146
146
'|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*$/ ' ,
147
149
];
148
150
149
151
$ ccNumAndTypeMatches = isset (
@@ -213,6 +215,8 @@ public function getVerificationRegEx()
213
215
'SO ' => '/^[0-9]{3,4}$/ ' ,
214
216
'OT ' => '/^[0-9]{3,4}$/ ' ,
215
217
'JCB ' => '/^[0-9]{3,4}$/ ' ,
218
+ 'MI ' => '/^[0-9]{3}$/ ' ,
219
+ 'MD ' => '/^[0-9]{3}$/ ' ,
216
220
];
217
221
return $ verificationExpList ;
218
222
}
You can’t perform that action at this time.
0 commit comments