[freeside-commits] branch FREESIDE_4_BRANCH updated. f88387382c2b1c49819aa6506e5aae8679278c5c

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


The branch, FREESIDE_4_BRANCH has been updated
       via  f88387382c2b1c49819aa6506e5aae8679278c5c (commit)
      from  79a7bf5a7dc369181849e4a0771b0c4d2d722d1c (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 f88387382c2b1c49819aa6506e5aae8679278c5c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Jun 30 16:27:05 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 85039c0..f79ed70 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