Business::OnlinePayment::PaperlessTrans - Interface to Paperless Transaction Corporation BackOffice API
version 0.001006
use Try::Tiny; use Business::OnlinePayment; my $tx = Business::OnlinePayment->new('PaperlessTrans'); $tx->test_transaction(1); $tx->content( login => 'TerminalID', password => 'TerminalKey', debug => '1', # 0, 1, 2 type => 'ECHECK', action => 'Normal Authorization', check_number => '132', amount => 1.32, currency => 'USD', routing_code => 111111118, account_name => 'Caleb Cushing',, account_number => 12121214, name => 'Caleb Cushing', address => '400 E. Royal Lane #201', city => 'Irving', state => 'TX', zip => '75039-2291', country => 'US', ); try { $tx->submit; } catch { # log errors }; if ( $tx->is_success ) { # do stuff with $tx->order_number; $tx->authorization; } else { # log $tx->error_message; } # start all over again credit cards $tx->content( login => 'TerminalID', password => 'TerminalKey', debug => '1', # 0, 1, 2 type => 'CC', action => 'Authorization Only', amount => 1.00, currency => 'USD', name => 'Caleb Cushing', card_number => '5454545454545454', expiration => '1215', cvv2 => '111', ); ## ...
Caleb Cushing <xenoterracide@gmail.com>
This software is Copyright (c) 2013 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Business::OnlinePayment::PaperlessTrans, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::OnlinePayment::PaperlessTrans
CPAN shell
perl -MCPAN -e shell install Business::OnlinePayment::PaperlessTrans
For more information on module installation, please visit the detailed CPAN module installation guide.