From eb9d32f6f5b3c145e6aacc351213147056086ae7 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 5 May 2010 17:28:33 -0700 Subject: [PATCH] Log the correct transaction data on a $0 checkout. --- lib/WebGUI/Shop/Cart.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index 6c66f78f6..668b68c81 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -921,7 +921,7 @@ sub www_update { ##Handle rounding errors, and checkout immediately if the amount is 0 since ##at least the ITransact driver won't accept $0 checkout. if (sprintf('%.2f', $total + $self->calculateShopCreditDeduction($total)) eq '0.00') { - my $transaction = WebGUI::Shop::Transaction->create($session, {self => $self}); + my $transaction = WebGUI::Shop::Transaction->create($session, {cart => $self}); $transaction->completePurchase('zero', 'success', 'success'); $self->onCompletePurchase; $transaction->sendNotifications();