Card::Magnetic - Magnetic Stripe parser
version 0.003
This module is a parser to the contents of the magnetic stripe from cards that follow the ISO 7810 norm.
It will build a object that has the ISO 7813 tracks exploded as a hash, with each track, track1, track2 with a hashref with the fields defined by the norm.
Is also possible have cards that has only the track 1 and 2, 2 and 3 or any combination.
use Card::Magnetic; my $card = Card::Magnetic->new(); $card->stripe( "stripe content" ); $card->parse();
Card::Magnetic - Magnetic stripe parser
Instanciate a new card
Stripe accessor
Parse the stripe and create a internal hash hashref structure with the exploded layout of the card.
{ stripe => "full stripe content", tracks => [ ], #array with the tracks on the strip track1 => { }, # hash with the fields on track 1 track2 => { }, # Same as track 1, will have a hash with the track2 fields track3 => { }, # Track3 }
Return the string of the track,
Frederico Recsky <recsky@cpan.org>
You can find the source code and more details about magnetic cards on the links above:
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Frederico Recsky <cartas@frederico.me>
This software is copyright (c) 2017 by Frederico Recsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
3 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =SUPPORT
Unknown directive: =LICENSE
You forgot a '=back' before '=head1'
To install Card::Magnetic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Card::Magnetic
CPAN shell
perl -MCPAN -e shell install Card::Magnetic
For more information on module installation, please visit the detailed CPAN module installation guide.