#24 CC validation formula

open
nobody
None
5
2002-04-25
2002-04-25
Richard Archer
No

From: Lindsay Haisley

Here's a neat little piece which I put together to
check credit card
numbers. The algorithm for doing this is based on
what's called the LUHN
formula which you can find lots of places such as
<http://www.webopedia.com/TERM/L/Luhn_formula.html>
although credit card
companies won't tell you what it is :-). This might
make a nice add-on to
the cart class, although it's certainly functionally
peripheral to operation
of the class.

Discussion

  • nathan hruby
    nathan hruby
    2002-07-02

    Logged In: YES
    user_id=19736

    Umm.. There's no patch attached to this tracker Item :)

    Anyone got one? If not I'm closing the patch...

     
  • Richard Archer
    Richard Archer
    2002-07-02

    luhn verification code

     
    Attachments
  • Richard Archer
    Richard Archer
    2002-07-02

    Logged In: YES
    user_id=279311

    I don't know what's going on here... I reckon there's at
    least 4 notes I've posted to these trackers that have gone
    missing.

    Anyway, here's the LUHN script.