Set up enhanced logging of transactions.
Note that now, all transactions are logged, whether they fail or not. Failed transactions are logged with status canceled. ITransact transactions have additional data logged.
This commit is contained in:
parent
215914590a
commit
d2e55307ed
6 changed files with 140 additions and 3 deletions
|
|
@ -503,6 +503,10 @@ sub www_checkoutSubmit {
|
|||
|
||||
$transaction->gatewayId($plugin->gatewayId);
|
||||
$transaction->gateway($plugin->namespace);
|
||||
|
||||
##New transaction logging code for ITransact module
|
||||
##goes here.
|
||||
$plugin->logExtraTransactionData($transaction);
|
||||
|
||||
# check transaction result
|
||||
unless ($plugin->connectionError) {
|
||||
|
|
@ -519,14 +523,16 @@ sub www_checkoutSubmit {
|
|||
$var->{status} = $i18n->get('transaction error');
|
||||
$var->{error} = $plugin->transactionError;
|
||||
$var->{errorCode} = $plugin->errorCode;
|
||||
$transaction->delete;
|
||||
$transaction->status('Canceled');
|
||||
#$transaction->delete;
|
||||
}
|
||||
} else {
|
||||
$checkoutError = 1;
|
||||
$var->{status} = $i18n->get('connection error');
|
||||
$var->{error} = $plugin->connectionError;
|
||||
$var->{errorCode} = $plugin->errorCode;
|
||||
$transaction->delete;
|
||||
$transaction->status('Canceled');
|
||||
#$transaction->delete;
|
||||
}
|
||||
|
||||
push(@resultLoop, $var);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue