For programmers to need to check PAN of credit card by Python using Luhn algorithm,this tested source code is useful.
Specification
ID | STCD_0000000016 |
Language | Python |
Steps | 53 |
Purpose | Pay by PayPal |
Function | check Credit card number using Luhn algorithm. |
Environment | Ubuntu 20.04.4 LTS Anaconda3(Python 3.9.7) IDE : Visual Studio Code |
Restriction | free license You can use source code copy as owner . You can customize and distribute it freely. |
Price | 7 dollars or 700 yen (Pay by PayPal) |
References | https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AC%E3%82%B8%E3%83%83%E3%83%88%E3%82%AB% E3%83%BC%E3%83%89%E3%81%AE%E7%95%AA%E5%8F%B7 https://pay.jp/docs/testcard |
Source Code
Test Result
NO | test case | result |
01 | VISA | OK |
02 | MASTERCARD | OK |
03 | JCB | OK |
04 | AMEX | OK |
05 | DINARS | OK *) 2 patterns cannot be determined (BIN seems to be added) |
06 | DISCOVER | OK |
Test Code
*) Modify “path” along your PC environment.
History
22/4/2023 created
Provider Profile
Nick name is “Dead Fish” employed as an engineer in Japan.
I am grad if you need my code.
Thanks !
Download
Get download passwordSTCD_0000000016
1 file(s) 0.18 KB
Following files and data are zipped.
└── CheckPan.py
Remarks
None
Comments