From: mark Date: Thu, 3 Mar 2011 19:08:46 +0000 (+0000) Subject: allow third-party payment customers to be recorded as CARD, #11734 X-Git-Tag: freeside_2_3_0~531 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c01c619fdcbcf29ed6ce045e03c0be5d13fd836c allow third-party payment customers to be recorded as CARD, #11734 --- diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 50b0b5df0..b18f21f74 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -586,7 +586,8 @@ sub new_customer { unless grep { $_ eq $packet->{'payby'} } $conf->config('signup_server-payby'); - if (FS::payby->realtime($packet->{payby})) { + if (FS::payby->realtime($packet->{payby}) + and not $conf->exists('signup_server-third_party_as_card')) { my $payby = $packet->{payby}; my $agent = qsearchs('agent', { 'agentnum' => $agentnum }); diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 3f5398959..d42956bf2 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1921,6 +1921,13 @@ and customer address. Include units.', }, { + 'key' => 'signup_server-third_party_as_card', + 'section' => 'self-service', + 'description' => 'Allow customer payment type to be set to CARD even when using third-party credit card billing.', + 'type' => 'checkbox', + }, + + { 'key' => 'selfservice-xmlrpc', 'section' => 'self-service', 'description' => 'Run a standalone self-service XML-RPC server on the backend (on port 8080).',