Artuuro_lv Posted August 16, 2009 Report Posted August 16, 2009 (edited) DELETED! PLEASE REMOVE TOPIC OR CLOSE IT@ Edited August 18, 2009 by Artuuro_lv Quote
bubu Posted August 16, 2009 Report Posted August 16, 2009 Kāpēc nav php? Kautkā dikti garš kods, un atbalsta maz kartes. Reku daudz īsāks, universālās (der vairāk kartēm), un php valodā: http://planzero.org/code/bits/viewcode.php?src=luhn_check.phps Tas der sekojošām kartēm: http://en.wikipedia.org/wiki/Credit_card_number#Card_prefixes_and_lengths (tām kurām uzrakstīts Luhn algorithm pie Validation kolonnas). Atliek tikai garumu un prefiksu pārbaudi pielikt klāt (vai arī ņemt jau gatavu skriptu) Quote
indoom Posted August 17, 2009 Report Posted August 17, 2009 Vispār, pirms izplati kodu, ievēro licenzes noteikumus. Piem., "In all cases copyright and header must remain intact." http://www.scriptarchive.com/download.cgi?s=ccver&c=txt&f=cc_ver.pl Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.