Forward port PayDriver button and labeling fix.

Forward port testEnvironment fix for not having prerequisite perl modules.
This commit is contained in:
Colin Kuskie 2008-12-10 02:28:39 +00:00
parent 08bf6b5147
commit 6336e569ff
5 changed files with 12 additions and 5 deletions

View file

@ -337,7 +337,7 @@ sub www_manage {
.WebGUI::Form::formFooter($session)
# Append payment gateway label
.' '. $paymentGateway->label()
.' '. $paymentGateway->get('label')
.'</div>';
}

View file

@ -62,11 +62,10 @@ this plugin.
sub getButton {
my $self = shift;
my $session = $self->session;
my $i18n = WebGUI::International->new($session, 'PayDriver_Cash');
my $payForm = WebGUI::Form::formHeader($session)
. $self->getDoFormTags('getCredentials')
. WebGUI::Form::submit($session, {value => $i18n->get('cash') })
. WebGUI::Form::submit($session, {value => $self->get('label') })
. WebGUI::Form::formFooter($session);
return $payForm;

View file

@ -430,11 +430,10 @@ sub doXmlRequest {
sub getButton {
my $self = shift;
my $session = $self->session;
my $i18n = WebGUI::International->new($session, 'PayDriver');
my $payForm = WebGUI::Form::formHeader($session)
. $self->getDoFormTags('getCredentials')
. WebGUI::Form::submit($session, {value => $i18n->get('credit card') })
. WebGUI::Form::submit($session, {value => $self->get('label') })
. WebGUI::Form::formFooter($session);
return $payForm;