diff options
-rw-r--r-- | FS/FS/ClientAPI/Signup.pm | 12 |
1 files changed, 5 insertions, 7 deletions
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) |