Skip to content

Commit cb1bedd

Browse files
stefanheimannDarkaOnLine
authored andcommitted
Extend number length for visa electron (#29)
* Extend number length for visa electron Visa Electron card also can be 17 digits long, please test with these card details: Card Number: 49174917491749174 CV2/CVV: 123 * added 17 digits long credit card number to tests
1 parent 601db22 commit cb1bedd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Cards/VisaElectron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class VisaElectron extends Card implements CreditCard
3939
*
4040
* @var array
4141
*/
42-
protected $number_length = [16];
42+
protected $number_length = [16, 17];
4343

4444
/**
4545
* CVC code length's.

tests/Unit/Cards/VisaElectronTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function validNumbers(): Collection
1818
'4917300800000000',
1919
'4479651508787615',
2020
'4113550663468031',
21+
'49174917491749174',
2122
]);
2223
}
2324

0 commit comments

Comments
 (0)