replaced return; with return undef;
This commit is contained in:
parent
ffa90c5fbd
commit
fa09c41598
113 changed files with 287 additions and 286 deletions
|
|
@ -36,7 +36,7 @@ our @ISA = qw(WebGUI::Commerce::Payment);
|
|||
#-------------------------------------------------------------------
|
||||
sub connectionError {
|
||||
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ sub connectionError {
|
|||
$self = shift;
|
||||
|
||||
return $self->resultMessage if ($self->{_connectionError});
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -325,7 +325,7 @@ sub getRecurringPaymentStatus {
|
|||
my $transactionData = $self->session->db->quickHashRef("select * from ITransact_recurringStatus where gatewayId=".$self->session->db->quote($recurringId));
|
||||
unless ($transactionData->{recipe}) { # if for some reason there's no transaction data, we shouldn't calc anything
|
||||
$self->session->errorHandler->error("For some reason recurring transaction $recurringId doesn't have any recurring status transaction data. This is most likely because you don't have the Recurring Postback URL set in your ITransact virtual terminal.");
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
my $lastTerm = int(($transactionData->{lastTransaction} - $transactionData->{initDate}) / $resolve{$transactionData->{recipe}}) + 1;
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ sub getRecurringPaymentStatus {
|
|||
$paymentHistory{resultCode} = $transactionData->{status}.' '.$transactionData->{errorMessage};
|
||||
$paymentHistory{resultCode} = 0 if $transactionData->{status} eq 'OK';
|
||||
} else {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
return \%paymentHistory;
|
||||
|
|
@ -350,7 +350,7 @@ sub errorCode {
|
|||
|
||||
$resultCode = $self->{_response}->{Status};
|
||||
return $resultCode unless ($resultCode eq 'OK');
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -607,7 +607,7 @@ sub transactionError {
|
|||
|
||||
$resultCode = $self->resultCode;
|
||||
return $self->resultMessage if ($resultCode ne 'OK');
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue