started on transaction management interface

finished merging new yui
This commit is contained in:
JT Smith 2008-03-15 19:39:19 +00:00
parent 728eccc3cb
commit fb17e6375e
6 changed files with 231 additions and 17 deletions

View file

@ -21,6 +21,7 @@ use WebGUI::Shop::Cart;
use WebGUI::Shop::Pay;
use WebGUI::Shop::Ship;
use WebGUI::Shop::Tax;
use WebGUI::Shop::Transaction;
=head1 NAME
@ -173,6 +174,26 @@ sub www_tax {
return $output;
}
#-------------------------------------------------------------------
=head2 www_transaction ()
Hand off to the transaction system.
=cut
sub www_transaction {
my $session = shift;
my $output = undef;
my $method = "www_".$session->form->get("method");
my $transaction = WebGUI::Shop::Transaction->create($session);
if ($method ne "www_" && $transaction->can($method)) {
$output = $transaction->$method();
}
return $output;
}
1;