diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-06-30 16:27:03 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-06-30 16:27:03 -0700 |
commit | 5a79ce5e0334e78a1e49798e3d98700bcf309419 (patch) | |
tree | 39583f21cbe04899d876c40b336f4a71e0a4f963 | |
parent | f21ba2add822ca502b1e66b27a30c4404f97c35e (diff) |
fix card signup in v4
-rw-r--r-- | FS/FS/cust_main/Billing_Realtime.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index 0623fbb0d..d62120b3f 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}); } |