projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
acdcfc7
)
allow third-party payment customers to be recorded as CARD, #11734
author
mark
<mark>
Thu, 3 Mar 2011 19:08:46 +0000
(19:08 +0000)
committer
mark
<mark>
Thu, 3 Mar 2011 19:08:46 +0000
(19:08 +0000)
FS/FS/ClientAPI/Signup.pm
patch
|
blob
|
history
FS/FS/Conf.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/Signup.pm
b/FS/FS/ClientAPI/Signup.pm
index
50b0b5d
..
b18f21f
100644
(file)
--- 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');
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 });
my $payby = $packet->{payby};
my $agent = qsearchs('agent', { 'agentnum' => $agentnum });
diff --git
a/FS/FS/Conf.pm
b/FS/FS/Conf.pm
index
3f53989
..
d42956b
100644
(file)
--- a/
FS/FS/Conf.pm
+++ b/
FS/FS/Conf.pm
@@
-1920,6
+1920,13
@@
and customer address. Include units.',
'type' => 'select-pkg_class',
},
'type' => 'select-pkg_class',
},
+ {
+ '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',
{
'key' => 'selfservice-xmlrpc',
'section' => 'self-service',