Check PAN function

For programmers to need to check PAN of credit card by Python using Luhn algorithm,this tested source code is useful.

Specification

IDSTCD_0000000016
LanguagePython
Steps53
PurposePay by PayPal
Functioncheck Credit card number using Luhn algorithm.
EnvironmentUbuntu 20.04.4 LTS
Anaconda3(Python 3.9.7)
IDE : Visual Studio Code
Restrictionfree license
You can use source code copy as owner .
You can customize and distribute it freely.
Price7 dollars or 700 yen
(Pay by PayPal)
Referenceshttps://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

NOtest caseresult
01VISAOK
02MASTERCARDOK
03JCBOK
04AMEXOK
05DINARSOK
*) 2 patterns cannot be determined (BIN seems to be added)
06DISCOVEROK

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 password

Following files and data are zipped.

└── CheckPan.py

Remarks

None

Comments

Copied title and URL