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)
@@ -350,6 +350,13 @@ httemplate/docs/config.html
     'type'        => 'text',
   },
 
+  {
+    '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',
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'}