replaced return; with return undef;
This commit is contained in:
parent
ffa90c5fbd
commit
fa09c41598
113 changed files with 287 additions and 286 deletions
|
|
@ -84,7 +84,7 @@ undef if it's not recurring.
|
|||
=cut
|
||||
|
||||
sub duration {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -97,7 +97,7 @@ your item you don't have to override this method or if you do, you can just retu
|
|||
=cut
|
||||
|
||||
sub handler {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ You only need to override this method if your gateway uses a webbased contacting
|
|||
=cut
|
||||
|
||||
sub confirmRecurringTransaction {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -277,7 +277,7 @@ The term number you want the status of.
|
|||
=cut
|
||||
|
||||
sub getRecurringPaymentStatus {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -383,7 +383,7 @@ A hashref containing:
|
|||
=cut
|
||||
|
||||
sub normalTransaction {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -408,7 +408,7 @@ A hashref containing:
|
|||
=cut
|
||||
|
||||
sub recurringTransaction {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -401,7 +401,7 @@ you'll have to overload this method. Defaults to undef.
|
|||
=cut
|
||||
|
||||
sub trackingNumber {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -414,7 +414,7 @@ info of his package. Overload this method if your plugin supports tracking. Defa
|
|||
=cut
|
||||
|
||||
sub trackingUrl {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ sub cancelTransaction {
|
|||
|
||||
$self->status('Canceled');
|
||||
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -293,7 +293,7 @@ sub getByGatewayId {
|
|||
" and gateway=".$self->session->db->quote($paymentGateway));
|
||||
|
||||
return WebGUI::Commerce::Transaction->new($self->session, $transactionId) if $transactionId;
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue