protected static property CreditCardTest::$cardTestNumbers in Ubercart 8.4
A selection of "test" numbers to use for testing credit card payments.
These numbers all pass the Luhn algorithm check and are reserved by the card issuer for testing purposes.
Type: string[]
File
- payment/
uc_credit/ tests/ src/ Functional/ CreditCardTest.php, line 30
Class
- CreditCardTest
- Tests credit card payments with the test gateway.
Namespace
Drupal\Tests\uc_credit\FunctionalCode
protected static $cardTestNumbers = [
'378282246310005',
// American Express
'371449635398431',
'370000000000002',
'378734493671000',
// American Express Corporate
'5610591081018250',
// Australian BankCard
'30569309025904',
// Diners Club
'38520000023237',
'38000000000006',
// Carte Blanche
'6011111111111117',
// Discover
'6011000990139424',
'6011000000000012',
'3530111333300000',
// JCB
'3566002020360505',
'3088000000000017',
'5555555555554444',
// MasterCard
'5105105105105100',
'4111111111111111',
// Visa
'4012888888881881',
'4007000000027',
'4012888818888',
];