File tree 1 file changed +11
-0
lines changed
app/code/Magento/Payment/Model/Method
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Quote \Model \Quote \Payment ;
11
11
12
12
/**
13
+ * Credit Card payment method legacy implementation.
14
+ *
13
15
* @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
14
16
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
15
17
* @deprecated 100.0.8
@@ -93,6 +95,7 @@ public function __construct(
93
95
* @throws \Magento\Framework\Exception\LocalizedException
94
96
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
95
97
* @SuppressWarnings(PHPMD.NPathComplexity)
98
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
96
99
*/
97
100
public function validate ()
98
101
{
@@ -205,6 +208,8 @@ public function validate()
205
208
}
206
209
207
210
/**
211
+ * Check if verification should be used.
212
+ *
208
213
* @return bool
209
214
* @api
210
215
*/
@@ -218,6 +223,8 @@ public function hasVerification()
218
223
}
219
224
220
225
/**
226
+ * Get list of credit cards verification reg exp.
227
+ *
221
228
* @return array
222
229
* @api
223
230
*/
@@ -242,6 +249,8 @@ public function getVerificationRegEx()
242
249
}
243
250
244
251
/**
252
+ * Validate expiration date
253
+ *
245
254
* @param string $expYear
246
255
* @param string $expMonth
247
256
* @return bool
@@ -292,6 +301,8 @@ public function assignData(\Magento\Framework\DataObject $data)
292
301
}
293
302
294
303
/**
304
+ * Get code for "other" credit cards.
305
+ *
295
306
* @param string $type
296
307
* @return bool
297
308
* @api
You can’t perform that action at this time.
0 commit comments