Skip to content

Commit

Permalink
Clean up trailing spaces and update copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
msjohns1 committed Nov 4, 2017
1 parent b97321c commit e653676
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions lib/Vend/Payment.pm
Expand Up @@ -406,13 +406,13 @@ sub charge {
local $SIG{USR2} = sub {
$Global_Timeout = 'Global Timeout on gateway request';
exit;
};
};

my %rv = $sub->($pay_opt);

$pipe->print( ::uneval(\%rv) );
exit;
}
}

$pipe->reader;

Expand All @@ -429,23 +429,23 @@ sub charge {
my $rv = eval join ('', $pipe->getlines);

return %$rv;
}
}

return $sub->($pay_opt);
};
};

if($@) {
my $msg = errmsg(
"payment routine '%s' returned error: %s",
$charge_type,
$@,
);
$@,
);
kill (USR2 => $pid)
if $pid && kill (0 => $pid);
::logError($msg);
$result{MStatus} = 'died';
$result{MErrMsg} = $msg;
}
}
}
elsif($charge_type =~ /^\s*custom\s+(\w+)(?:\s+(.*))?/si) {
#::logDebug("Charge custom");
Expand Down
2 changes: 1 addition & 1 deletion lib/Vend/Payment/GatewayLog.pm
Expand Up @@ -366,7 +366,7 @@ Mark Johnson (mark@endpoint.com), End Point Corp.
=head1 LICENSE AND COPYRIGHT
Copyright (C) 2009 Interchange Development Group and others
Copyright (C) 2017 Interchange Development Group and others
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down
6 changes: 3 additions & 3 deletions lib/Vend/Payment/PaypalExpress.pm
Expand Up @@ -2080,17 +2080,17 @@ sub log_it {
my $response = $self->response;

my ($rc,$resp_msg);
if ( $response->{Ack} eq 'Success' ) {
if ( $response->{Ack} eq 'Success' ) {
$rc = 0;
$resp_msg = $response->{Ack};
}
}
else {
$rc = $response->{Errors}{ErrorCode};
# Just in case
$rc =~ s/[^-\d]+//g
if defined $rc;
$resp_msg = $response->{Errors}{LongMessage};
}
}

$rc = -1
unless length ($rc) && $rc =~ /\d/;
Expand Down

0 comments on commit e653676

Please sign in to comment.