Modulo eleven function?
| From: | B�rge Strand | Date: | Wed, 16 Oct 2002 15:56:39 +0000 |
| Subject: | Modulo eleven function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120213@lists.php.net to get a copy of this message | ||
Is anyone of you aware of a modulo eleven function that is used to
calculate the checksum of a creditcard number?
I have a pretty crude code listing from a book, but what I look for is
a function that can append the checksum digit to a number.
I have the spec for the algorithm behind the checksum already, so I
can surely write the function myself, I was just wondering if it was
already out there.
And to any Norwegian readers (or whoever makes sense of this), is it
right that the modulo eleven is also used to generate the checksum of
KID numbers in payments?
Regards,
Børge