Fix pluginName again in ITransact.

This commit is contained in:
Colin Kuskie 2010-10-08 14:21:42 -07:00
parent e130fb2c69
commit f6df2cc053
2 changed files with 3 additions and 2 deletions

View file

@ -96,7 +96,8 @@ sub addPaymentGateway {
unless exists $self->getDrivers->{$requestedClass};
WebGUI::Error::InvalidParam->throw(error => q{You must pass a hashref of options to create a new PayDriver object})
unless defined($options) and ref $options eq 'HASH' and scalar keys %{ $options };
my $driver = eval { WebGUI::Pluggable::instanciate($requestedClass, 'create', [ $self->session, $options ]) };
my $driver = eval { WebGUI::Pluggable::instanciate($requestedClass, 'new', [ $self->session, $options ]) };
$driver->write;
return $driver;
}

View file

@ -24,7 +24,7 @@ use HTTP::Request;
use Moose;
use WebGUI::Definition::Shop;
extends 'WebGUI::Shop::PayDriver';
define pluginName => [qw/ITransact PayDriver_ITransact/];
define pluginName => [qw/Itransact PayDriver_ITransact/];
property vendorId => (
fieldType => 'text',
label => ['vendorId', 'PayDriver_ITransact'],