From: ivan Date: Tue, 15 Sep 2009 22:58:54 +0000 (+0000) Subject: hopefully really finish fixing for good "Real timeprocessing not enabled!" error... X-Git-Tag: freeside_1_9_1^2~83 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=8e37628d7bbba59e26c50bb380dc096379bc2127;p=freeside.git hopefully really finish fixing for good "Real timeprocessing not enabled!" error when using signup without any real-time processor, RT#6043 --- diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 1f007981e..01c756e3f 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -471,14 +471,12 @@ sub new_customer { return { 'error' => "Unknown reseller" } unless $agent; - my $payment_gateway = - $agent->payment_gateway( 'method' => FS::payby->payby2bop($payby) ); + my $gw = $agent->payment_gateway( 'method' => FS::payby->payby2bop($payby), + 'nofatal' => 1, + ); - if ($payment_gateway->gateway_namespace eq - 'Business::OnlineThirdPartyPayment' - ) { - $cust_main->payby('BILL'); # MCRD better? - } + $cust_main->payby('BILL') # MCRD better? + if $gw && $gw->gateway_namespace eq 'Business::OnlineThirdPartyPayment'; } $cust_main->payinfo($cust_main->daytime)