summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-11-09 19:20:10 +0000
committerivan <ivan>2007-11-09 19:20:10 +0000
commit1737abc0d3f9e5b615e833af0f2a7afd59f876e8 (patch)
tree65916051acfc136f8f896de36daad854136eccbf
parent7502ab7b99bb956013cc0e555a0d7657b3c32723 (diff)
add business-onlinepayment-email_customer flag
-rw-r--r--FS/FS/Conf.pm7
-rw-r--r--FS/FS/cust_main.pm4
2 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 030799acf..0ad12c135 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -615,6 +615,13 @@ worry that config_items is freeside-specific and icky.
},
{
+ 'key' => 'business-onlinepayment-email_customer',
+ 'section' => 'billing',
+ 'description' => 'Controls the "email_customer" flag used by some Business::OnlinePayment processors to enable customer receipts.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'countrydefault',
'section' => 'UI',
'description' => 'Default two-letter country code (if not supplied, the default is `US\')',
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index ff40cfe83..fa908bf2c 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -3026,6 +3026,10 @@ sub realtime_bop {
$content{invoice_number} = $options{'invnum'}
if exists($options{'invnum'}) && length($options{'invnum'});
+ $content{email_customer} =
+ ( $conf->exists('business-onlinepayment-email_customer')
+ || $conf->exists('business-onlinepayment-email-override') );
+
my $paydate = '';
if ( $method eq 'CC' ) {