diff --git a/lib/WebGUI/Shop/Pay.pm b/lib/WebGUI/Shop/Pay.pm index 32d1f3af8..839fb2155 100644 --- a/lib/WebGUI/Shop/Pay.pm +++ b/lib/WebGUI/Shop/Pay.pm @@ -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; } diff --git a/lib/WebGUI/Shop/PayDriver/ITransact.pm b/lib/WebGUI/Shop/PayDriver/ITransact.pm index a106b7e63..59b7dd0a8 100644 --- a/lib/WebGUI/Shop/PayDriver/ITransact.pm +++ b/lib/WebGUI/Shop/PayDriver/ITransact.pm @@ -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'],