The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Card::Magnetic - Magnetic Stripe parser

VERSION

version 0.003

SYNOPSIS

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();

NAME

Card::Magnetic - Magnetic stripe parser

SUBROUTINES/METHODS

new

Instanciate a new card

stripe

Stripe accessor

parse

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 
    }

track1

Return the string of the track,

track2

Return the string of the track,

track3

Return the string of the track,

AUTHOR

Frederico Recsky <recsky@cpan.org>

You can find the source code and more details about magnetic cards on the links above:

GitHub FredericoRecsky/Card https://github.com/fredericorecsky/card
ISO 7813 Explanation http://www.gae.ucm.es/~padilla/extrawork/tracks.html

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Frederico Recsky <cartas@frederico.me>

COPYRIGHT AND LICENSE

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:

Around line 207:

Unknown directive: =SUPPORT

Around line 220:

Unknown directive: =LICENSE

Around line 225:

You forgot a '=back' before '=head1'