Index: openacs-4/packages/ecommerce/www/finalize-order.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/finalize-order.tcl,v diff -u -r1.7.2.3 -r1.7.2.4 --- openacs-4/packages/ecommerce/www/finalize-order.tcl 23 Dec 2004 06:42:13 -0000 1.7.2.3 +++ openacs-4/packages/ecommerce/www/finalize-order.tcl 23 Dec 2004 08:57:28 -0000 1.7.2.4 @@ -81,7 +81,7 @@ if { [empty_string_p $most_recently_confirmed_order] } { rp_internal_redirect index - ns_log Warning "finalize-order.tcl,line84: no confirmed order for user $user_id. Redirecting user." + ns_log Notice "finalize-order.tcl ref(84): no confirmed order for user $user_id. Redirecting user." } else { rp_internal_redirect thank-you } @@ -293,6 +293,9 @@ ec_update_state_to_in_basket $order_id + # authorization error is not necessarily the fault of the user's card, so log it for identifying pattern for diagnostics + ns_log Notice "finalize-order.tcl ref(295): failed_authorization for order_id: $order_id. Redirecting user to credit-card-correction." + rp_internal_redirect credit-card-correction ad_script_abort } else { @@ -405,7 +408,7 @@ # confirmed order fails ec_update_state_to_in_basket $order_id - + ns_log Notice "finalize-order.tcl ref(411): updated creditcard check failed for order_id $order_id. Redirecting to credit-card-correction" rp_internal_redirect credit-card-correction ad_script_abort } else { @@ -538,6 +541,7 @@ # confirmed order fails ec_update_state_to_in_basket $order_id + ns_log Notice "finalize-order.tcl ref(544): creditcard check failed. Redirecting user to credit-card-correction." rp_internal_redirect credit-card-correction } else { @@ -665,6 +669,9 @@ ec_update_state_to_in_basket $order_id + # log this just in case this is a symptom of an extended gateway downtime + ns_log Notice "finalize-order.tcl, ref(671): creditcard check failed for order_id $order_id. Redirecting to credit-card-correction" + rp_internal_redirect credit-card-correction ad_script_abort } else { @@ -788,7 +795,7 @@ # confirmed order fails ec_update_state_to_in_basket $order_id - + ns_log Notice "finalize-order.tcl ref(789): creditcard check failed. Redirecting to credit-card-correction" rp_internal_redirect credit-card-correction ad_script_abort