No more getButton method in the PayDriver, it's now a dropdown in the cart.

This commit is contained in:
Colin Kuskie 2010-04-27 17:31:11 -07:00
parent e0a9f34b53
commit 1ef4aa8ef0
2 changed files with 0 additions and 33 deletions

View file

@ -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.

View file

@ -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.