From f6df2cc05380e9dc36055186429f35a6c419e4e3 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 8 Oct 2010 14:21:42 -0700 Subject: [PATCH] Fix pluginName again in ITransact. --- lib/WebGUI/Shop/Pay.pm | 3 ++- lib/WebGUI/Shop/PayDriver/ITransact.pm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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'],