<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>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.</div><div><br></div><div>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. :)</div><div><br></div><div>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.</div><div><br></div><div>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?</div><div><br></div><div>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.</div><div><br></div><div>Any explanation of why this happens this way would be appreciated.</div><div><br></div><div>Thanks</div><div><br></div><div>Angus</div><div><br></div><div><br></div><div><br></div><div>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.</div><div>> </div><div>> </div><div>> <span class="Apple-tab-span" style="white-space:pre">            </span>for(qw/</div><div>> <span class="Apple-tab-span" style="white-space:pre">                         </span>charge_total_message</div><div>> <span class="Apple-tab-span" style="white-space:pre">                            </span>pay_cert_total</div><div>> <span class="Apple-tab-span" style="white-space:pre">          </span>/)</div><div>> <span class="Apple-tab-span" style="white-space:pre">              </span>{</div><div>> <span class="Apple-tab-span" style="white-space:pre">                       </span>delete $Scratch->{$_};</div><div>> <span class="Apple-tab-span" style="white-space:pre">               </span>}</div><div>> <span class="Apple-tab-span" style="white-space:pre">               </span>die errmsg(</div><div>> <span class="Apple-tab-span" style="white-space:pre">                             </span>"Real-time charge failed. Reason: %s\n",</div><div>> <span class="Apple-tab-span" style="white-space:pre">                              </span>errmsg($Session->{payment_error}),</div><div>> <span class="Apple-tab-span" style="white-space:pre">                   </span>);</div><div>> <span class="Apple-tab-span" style="white-space:pre">      </span></div><div>> </div><div>172.16.36.98 tRezMrfZ:172 - [27/August/2013:11:48:14 -0400] standard580 /cgi-bin/cgiwrap/rsicdev/standard580/process.html Route log failed.</div><div>172.16.36.98 tRezMrfZ:172 - [27/August/2013:11:48:14 -0400] standard580 /cgi-bin/cgiwrap/rsicdev/standard580/process.html ERRORS on ORDER :</div><div>> Error during creation of order routing log:</div><div>> Route log failed. at /home/rsicdev/interchange/lib/Vend/Order.pm line 1844.</div><div>> </div><div><br></div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><b>---</b></div><div><b>Angus Rogerson, BMath, BScN, RN</b></div><div><br></div><div>Duct Tape Programmer</div><div>University of Waterloo | Retail Services | Information Systems</div><div><span class="Apple-style-span" style="line-height: 12px; "><b><br></b></span></div><div><span class="Apple-style-span" style="line-height: 12px; "><b>Visit Us Online & Right On Campus<span class="Apple-converted-space"> </span><a href="http://www.retailservices.uwaterloo.ca">www.retailservices.uwaterloo.ca</a></b></span></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>