summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-03-03 19:11:29 +0000
committermark <mark>2011-03-03 19:11:29 +0000
commit53f00fc7f71209e1de5d11091574d3b8aad842fa (patch)
tree4c3b4724078a90acbca5e8a00e8eb24bf8b0e4ca
parentb0e0e3bf4713c70df5a24169be9e5a464385c739 (diff)
allow third-party payment customers to be recorded as CARD, #11734
-rw-r--r--FS/FS/ClientAPI/Signup.pm3
-rw-r--r--FS/FS/Conf.pm7
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).',