X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-Skipjack.git;a=blobdiff_plain;f=Skipjack.pm;h=2fc76497f5a588041e4cc449ca7ec05722696ecb;hp=e20eaf15efb21fd3dda2f4e04229e0fec64665ef;hb=0b270c86a5c11ba37ba40176161bb28f9104abd5;hpb=9751024873641a07657bec7f11597ae18cf63207 diff --git a/Skipjack.pm b/Skipjack.pm index e20eaf1..2fc7649 100644 --- a/Skipjack.pm +++ b/Skipjack.pm @@ -27,7 +27,7 @@ use Business::OnlinePayment::HTTPS; use Text::CSV_XS; use vars qw( @ISA $VERSION $DEBUG ); -$VERSION = "0.2"; +$VERSION = "0.5"; $DEBUG = 0; @ISA = qw( Business::OnlinePayment::HTTPS ); @@ -429,12 +429,14 @@ sub parse_SJAPI_TransactionChangeStatusRequest my @records = split(/\r\n/, $page); - $csv->parse(shift @records) or die $csv->error; + $csv->parse(shift @records) + or die "CSV parse failed on " . $csv->error_input; @output{@CHANGE_STATUS_RESPONSE} = $csv->fields(); # we only handle a single record reponse, as that's all this module will # currently submit... - $csv->parse(shift @records) or die $csv->error; + $csv->parse(shift @records) + or die "CSV parse failed on " . $csv->error_input; @output{@CHANGE_STATUS_RESPONSE_RECORD} = $csv->fields(); return %output; @@ -451,12 +453,15 @@ sub parse_SJAPI_TransactionStatusRequest my @records = split(/\r\n/, $page); - $csv->parse(shift @records) or die $csv->error; + #$csv->parse(shift @records) + $csv->parse(shift @records) + or die "CSV parse failed on " . $csv->error_input; @output{@GET_STATUS_RESPONSE} = $csv->fields(); # we only handle a single record reponse, as that's all this module will # currently submit... - $csv->parse(shift @records) or die $csv->error; + $csv->parse(shift @records) + or die "CSV parse failed on " . $csv->error_input; @output{@GET_STATUS_RESPONSE_RECORD} = $csv->fields(); return %output; @@ -572,11 +577,13 @@ Skipjack's TransactionStatusRequest. It should be documented. =head1 AUTHOR -Original Skipjack.pm developed by New York Connect Net (http://nyct.net) -Michael Bacarella +Inspiried by (but no longer contains) code from: -Modified for GetCareer.com by Slipstream.com -Troy Davis + Original Skipjack.pm developed by New York Connect Net (http://nyct.net) + Michael Bacarella + + Modified for GetCareer.com by Slipstream.com + Troy Davis 'Adapted' (completely rewritten) for Business::OnlinePayment by Fire2Wire Internet Services (http://www.fire2wire.com) @@ -588,14 +595,18 @@ Boring 0.2 update by Ivan Kohler =head1 COPYRIGHT -original license unknown, pending contact from Michael Bacarella / nyct.net. -assuming it is okay... - -Business::OnlinePayment rewrite: Copyright (c) 2006 Fire2Wire Internet Services (http://www.fire2wire.com) All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +Inspiried by (but no longer contains) code from: + + Original Skipjack.pm developed by New York Connect Net (http://nyct.net) + Michael Bacarella + + Modified for GetCareer.com by Slipstream.com + Troy Davis + =head1 SEE ALSO L