diff options
| -rw-r--r-- | FS/FS/ClientAPI/Signup.pm | 3 | ||||
| -rw-r--r-- | FS/FS/Conf.pm | 7 | 
2 files changed, 9 insertions, 1 deletions
| 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 36ad30c5f..f75f268c1 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1914,6 +1914,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).', | 
