Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix glitch setting result_code to database.
Another spot where 0 caused trouble.
  • Loading branch information
msjohns1 committed Nov 4, 2017
1 parent a7e6ba4 commit 871c475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vend/Payment/CyberSource.pm
Expand Up @@ -2611,7 +2611,7 @@ sub log_it {
trans_type => $response->{transtype} || $self->{trans_type},
processor => 'cybersource',
catalog => $Vend::Cfg->{CatalogName},
result_code => $response->{result_code} || '',
result_code => length ($response->{result_code}) ? $response->{result_code} : '',
result_subcode => $response->{decision} || '',
reason_code => $response->{reasonCode} || '',
response_msg => $response->{rc_msg} || '',
Expand Down

0 comments on commit 871c475

Please sign in to comment.