- _pre_submit(): explicity set return value
- BUG: _pre_submit() returns success if fraud detection is used but not found!
this behavior is unchanged but this is probably a bug / bad behavior (Ivan?)
if ( $risk_transaction->fraud_score <= $self->maximum_fraud_score()) {
return 1;
} else {
- $self->is_success(0);
$self->error_message('Excessive risk from risk management');
}
} else {
$self->error_message('Error in risk detection stage: ' . $risk_transaction->error_message);
- $self->is_success(0);
}
+ $self->is_success(0);
+ return 0;
}
sub _pre_submit {
}
}
}
+ return 1; # BUG?: success if fraud_detection module not found!
}
sub content {