Источник: https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm
Credit Card Type | Credit Card Number |
---|---|
American Express | 378282246310005 |
American Express | 371449635398431 |
American Express Corporate | 378734493671000 |
Australian BankCard | 5610591081018250 |
Diners Club | 30569309025904 |
Diners Club | 38520000023237 |
Discover | 6011111111111117 |
Discover | 6011000990139424 |
JCB | 3530111333300000 |
JCB | 3566002020360505 |
MasterCard | 5555555555554444 |
MasterCard | 5105105105105100 |
Visa | 4111111111111111 |
Visa | 4012888888881881 |
Visa | 4222222222222 Note : Even though this number has a different character count than the other test numbers, it is the correct and functional number. |
Processor-specific Cards | |
Dankort (PBS) | 76009244561 |
Dankort (PBS) | 5019717010103742 |
Switch/Solo (Paymentech) | 6331101999990016 |
По первым 6 цифрам номера карты можно определить банк. BIN/БИН это Банковский Идентификационный Номер.
Копипаст с blogbankir.ru
Определить банк из консоли источник
# bin="510092" ; curl -s -H "Accept-Version: 3" "https://lookup.binlist.net/$bin" | jq "." { "number": {}, "scheme": "mastercard", "type": "credit", "brand": "Gold", "country": { "numeric": "643", "alpha2": "RU", "name": "Russian Federation", "emoji": "", "currency": "RUB", "latitude": 60, "longitude": 100 }, "bank": { "name": "JSC RUSSIAN STANDARD BANK", "url": "www.rsb.ru", "phone": "7 7272 58 15 05" } }
Для подобного вывода нужен jq (Command-line JSON processor).
Тинькофф почему-то не определяется через этот сервис.