[ic] Lots of 'noise' in the error.log for declined transactions

Angus Rogerson arogerso at uwaterloo.ca
Tue Aug 27 16:37:24 UTC 2013


Hello,

This has been bothering me for a while, and now that I am upgrading to 5.8.0 I would like to try to deal with it.

When a customer's card is declined, an entry displaying the whole [calc] tag from etc/log_transaction appears in the error.log, followed by 2 more errors (see below). It seems to me that the error.log should show things that some programmer should fix, not report trivial things like a customer being over their limit. A customer's credit problems are not 'my' problems. :)

I would have expected that the [try] [catch] tags should allow the catch to do the necessary steps to abort the transaction without making a fuss. Just tell the customer and let them find another way to pay.

Is there a different way for etc/log_transaction to deal with declined transactions? Is Safe grabbing the error before the [catch] gets a chance to fix it nicely? Does the calc tag need to be called differently to catch the die more elegantly?

Below is an example of the log using Interchange 5.8.0 out of the box, with the Require Vend TestPayment uncommented in catalog.cfg. Nothing is logged when the transaction succeeds.

Any explanation of why this happens this way would be appreciated.

Thanks

Angus



172.16.36.98 tRezMrfZ:172 - [27/August/2013:11:48:14 -0400] standard580 /cgi-bin/cgiwrap/rsicdev/standard580/process.html Safe: Real-time charge failed. Reason: TestPayment error: Payment declined by the card issuer.  Please call in your order or try again.
> 
> 
> 		for(qw/
> 				charge_total_message
> 				pay_cert_total
> 		/)
> 		{
> 			delete $Scratch->{$_};
> 		}
> 		die errmsg(
> 				"Real-time charge failed. Reason: %s\n",
> 				errmsg($Session->{payment_error}),
> 			);
> 	
> 
172.16.36.98 tRezMrfZ:172 - [27/August/2013:11:48:14 -0400] standard580 /cgi-bin/cgiwrap/rsicdev/standard580/process.html Route log failed.
172.16.36.98 tRezMrfZ:172 - [27/August/2013:11:48:14 -0400] standard580 /cgi-bin/cgiwrap/rsicdev/standard580/process.html ERRORS on ORDER :
> Error during creation of order routing log:
> Route log failed. at /home/rsicdev/interchange/lib/Vend/Order.pm line 1844.
> 

---
Angus Rogerson, BMath, BScN, RN

Duct Tape Programmer
University of Waterloo | Retail Services | Information Systems

Visit Us Online & Right On Campus www.retailservices.uwaterloo.ca





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20130827/30a5b596/attachment.html>


More information about the interchange-users mailing list