From d92347bf34827d04ab7d20e6cb8f4cd595b4ff69 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 2 May 2010 18:13:25 -0700 Subject: [PATCH] Use a method rather than reinventing the getPaymentGateway method. --- lib/WebGUI/Shop/Cart.pm | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index baf5bd0cf..be50659a8 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -848,23 +848,6 @@ sub www_ajaxPrices { #------------------------------------------------------------------- -=head2 www_continueShopping ( ) - -Update the cart and the return the user back to the asset. - -=cut - -sub www_continueShopping { - my $self = shift; - $self->updateFromForm; - if ($error{id $self} ne "") { - return $self->www_view; - } - return undef; -} - -#------------------------------------------------------------------- - =head2 www_lookupPosUser ( ) Adds a Point of Sale user to the cart. @@ -925,7 +908,7 @@ sub www_update { $transaction->sendNotifications(); return $transaction->thankYou(); } - my $gateway = WebGUI::Shop::Pay->new($session)->getPaymentGateway($self->get('gatewayId')); + my $gateway = $self->getPaymentGateway; return $gateway->www_getCredentials; } }