Skip to content

Commit d55fa28

Browse files
committed
MAGETWO-64413: [GITHUB] Invalid expiration year validator #8482
- Updated validator doc blocks
1 parent 824b005 commit d55fa28

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Payment/view/base/web/js/model/credit-card-validation

1 file changed

+5
-1
lines changed

app/code/Magento/Payment/view/base/web/js/model/credit-card-validation/validator.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
/**
5151
* Validate credit card number based on mod 10
52+
*
5253
* @param {*} number - credit card number
5354
* @return {Boolean}
5455
*/
@@ -61,6 +62,7 @@
6162

6263
/**
6364
* Validate credit card expiration month
65+
*
6466
* @param {String} date - month
6567
* @return {Boolean}
6668
*/
@@ -73,7 +75,8 @@
7375

7476
/**
7577
* Validate cvv
76-
* @param {String} cvv - month
78+
*
79+
* @param {String} cvv - card verification value
7780
* @return {Boolean}
7881
*/
7982
function (cvv) {
@@ -87,6 +90,7 @@
8790

8891
/**
8992
* Validate credit card expiration year
93+
*
9094
* @param {String} date - year
9195
* @return {Boolean}
9296
*/

0 commit comments

Comments
 (0)