From 1ef4aa8ef02281318ad3c12d34698fa33a2e9279 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 27 Apr 2010 17:31:11 -0700 Subject: [PATCH] No more getButton method in the PayDriver, it's now a dropdown in the cart. --- lib/WebGUI/Shop/PayDriver.pm | 12 ------------ lib/WebGUI/Shop/PayDriver/Cash.pm | 21 --------------------- 2 files changed, 33 deletions(-) diff --git a/lib/WebGUI/Shop/PayDriver.pm b/lib/WebGUI/Shop/PayDriver.pm index f5bb67fad..5888885a7 100644 --- a/lib/WebGUI/Shop/PayDriver.pm +++ b/lib/WebGUI/Shop/PayDriver.pm @@ -338,18 +338,6 @@ sub getAddress { #------------------------------------------------------------------- -=head2 getButton ( ) - -Returns the form that will take the user to check out. - -=cut - -sub getButton { - my $self = shift; -} - -#------------------------------------------------------------------- - =head2 getCart ( ) Returns the WebGUI::Shop::Cart object for the current session. diff --git a/lib/WebGUI/Shop/PayDriver/Cash.pm b/lib/WebGUI/Shop/PayDriver/Cash.pm index 872f47fcc..d0d8afb5c 100644 --- a/lib/WebGUI/Shop/PayDriver/Cash.pm +++ b/lib/WebGUI/Shop/PayDriver/Cash.pm @@ -66,27 +66,6 @@ sub definition { #------------------------------------------------------------------- -=head2 getButton ( ) - -Returns the HTML for a form containing a button that, when clicked, will take the user to the checkout screen of -this plugin. - -=cut - -sub getButton { - my $self = shift; - my $session = $self->session; - - my $payForm = WebGUI::Form::formHeader($session) - . $self->getDoFormTags('getCredentials') - . WebGUI::Form::submit($session, {value => $self->get('label') }) - . WebGUI::Form::formFooter($session); - - return $payForm; -} - -#------------------------------------------------------------------- - =head2 processPayment ( ) Returns (1, undef, 1, 'Success'), meaning that the payments whith this plugin always are successful.