Configuration option to override the email address sent to your BOP processor, in...
authorkhoff <khoff>
Mon, 11 Apr 2005 20:13:16 +0000 (20:13 +0000)
committerkhoff <khoff>
Mon, 11 Apr 2005 20:13:16 +0000 (20:13 +0000)
FS/FS/Conf.pm
FS/FS/cust_main.pm

index 4a97626..fa5d3c1 100644 (file)
@@ -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\'.',
index b6f5a79..d9f412b 100644 (file)
@@ -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'}