Fix pluginName again in ITransact.
This commit is contained in:
parent
e130fb2c69
commit
f6df2cc053
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue