[freeside-commits] branch master updated. 5a79ce5e0334e78a1e49798e3d98700bcf309419

Ivan ivan at 420.am
Fri Jun 30 16:27:04 PDT 2017


The branch, master has been updated
       via  5a79ce5e0334e78a1e49798e3d98700bcf309419 (commit)
      from  f21ba2add822ca502b1e66b27a30c4404f97c35e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5a79ce5e0334e78a1e49798e3d98700bcf309419
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Jun 30 16:27:03 2017 -0700

    fix card signup in v4

diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index 0623fbb..d62120b 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -126,6 +126,13 @@ sub realtime_collect {
   $options{amount} = $self->balance unless exists( $options{amount} );
   return '' unless $options{amount} > 0;
 
+  #huh, in v4, realtime_bop no longer will just process a card without passing
+  # payinfo or cust_payby...
+  if ( ! $options{'payinfo'} && ! $options{'cust_payby'} && $self->has_cust_payby_auto ) {
+    my @cust_payby = $self->cust_payby;
+    $options{'cust_payby'} = $cust_payby[0];
+  }
+
   return $self->realtime_bop({%options});
 
 }

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main/Billing_Realtime.pm |    7 +++++++
 1 file changed, 7 insertions(+)




More information about the freeside-commits mailing list