summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-03-03 19:08:46 +0000
committermark <mark>2011-03-03 19:08:46 +0000
commitc01c619fdcbcf29ed6ce045e03c0be5d13fd836c (patch)
tree081bf0b0d1a1e3016d852475f70808faa3da95a1
parentacdcfc79977617610989a3a5eee39c63e373a546 (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 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).',