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};
|
unless exists $self->getDrivers->{$requestedClass};
|
||||||
WebGUI::Error::InvalidParam->throw(error => q{You must pass a hashref of options to create a new PayDriver object})
|
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 };
|
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;
|
return $driver;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use HTTP::Request;
|
||||||
use Moose;
|
use Moose;
|
||||||
use WebGUI::Definition::Shop;
|
use WebGUI::Definition::Shop;
|
||||||
extends 'WebGUI::Shop::PayDriver';
|
extends 'WebGUI::Shop::PayDriver';
|
||||||
define pluginName => [qw/ITransact PayDriver_ITransact/];
|
define pluginName => [qw/Itransact PayDriver_ITransact/];
|
||||||
property vendorId => (
|
property vendorId => (
|
||||||
fieldType => 'text',
|
fieldType => 'text',
|
||||||
label => ['vendorId', 'PayDriver_ITransact'],
|
label => ['vendorId', 'PayDriver_ITransact'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue