Re: Package Proposal: Magnetic Stripe Card
| From: | Stefan Neufeind | Date: | Fri, 10 Oct 2003 05:24:45 +0000 |
| Subject: | Re: Package Proposal: Magnetic Stripe Card | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22544@lists.php.net to get a copy of this message | ||
On 9 Oct 2003 at 21:06, mitchell perilstein wrote:
> When there is a card-present transaction with a financial transaction
> card, the card swipe device returns a string containing the data on
> the card's one, two, or three magnetic tracks. A client browser can
> capture the swipe string and post it to an application server, where
> it can be processed.
>
> I'm starting work on a PEAR class that takes such a string, parses it,
> verifies the various checksums, then makes the data components
> available. Roughly like this:
>
> class MagStripeCard extends PEAR {
> object MagStripeCard($string) {} // Does parse and checksums;
> // ...returns self or PEAR_Error.
> string getPAN() {} // primary account number
> string getName() {} // account holder name
> string getExpireMonth() {} // two characters
> string getExpireYear() {} // two characters
> string getServiceCode() {} // service code
> string getPVKI() {} // PIN Verification Key Indicator
> string getCVV() {} // Card Validation Value
> string getPVV() {} // PIN Verification Value
> // etc...
> }
>
> * References
> *
> * Magnetic Stripe Card Standards - Card Reading
> * http://www.magtek.com/documentation/public/99800004-1.pdf
> *
> * Application Note - Character Conversion
> * http://www.magtek.com/documentation/public/99875065-4.pdf
I like the idea. This might be useful in various business
environments. Looking forward to see some code ... then please cast a
regular proposal etc. as always :-))
Stefan