diff options
author | khoff <khoff> | 2005-04-11 20:13:16 +0000 |
---|---|---|
committer | khoff <khoff> | 2005-04-11 20:13:16 +0000 |
commit | ba6db3949242ec66556f193da0779c9082c0d0aa (patch) | |
tree | 05e2bd4961023d2570fe76e33939fe672dec874f | |
parent | bbb9a4a8867a1aee202d84b38986538be44aaf1a (diff) |
Configuration option to override the email address sent to your BOP processor, in case the processor sends a pesky receipt that you don't want your customers getting.
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rw-r--r-- | FS/FS/cust_main.pm | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 4a9762672..fa5d3c1b4 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -351,6 +351,13 @@ httemplate/docs/config.html }, { + 'key' => 'business-onlinepayment-email-override', + 'section' => 'billing', + 'description' => 'Email address used instead of customer email address when submitting a BOP transaction.', + 'type' => 'text', + }, + + { 'key' => 'bsdshellmachines', 'section' => 'deprecated', 'description' => '<b>DEPRECATED</b>, add a <i>bsdshell</i> <a href="../browse/part_export.cgi">export</a> instead. Your BSD flavored shell (and mail) machines, one per line. This enables export of `/etc/passwd\' and `/etc/master.passwd\'.', diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index b6f5a795b..d9f412b79 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1907,7 +1907,10 @@ sub realtime_bop { || ( $conf->exists('emailinvoiceonly') && ! @invoicing_list ) ) { push @invoicing_list, $self->all_emails; } - my $email = $invoicing_list[0]; + + my $email = ($conf->exists('business-onlinepayment-email-override')) + ? $conf->config('business-onlinepayment-email-override') + : $invoicing_list[0]; my $payinfo = exists($options{'payinfo'}) ? $options{'payinfo'} |