Use a method rather than reinventing the getPaymentGateway method.

This commit is contained in:
Colin Kuskie 2010-05-02 18:13:25 -07:00
parent 1c70821a6f
commit d92347bf34

View file

@ -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;
}
}