projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9de91f7
)
restore fallback to customer billing address for CC transactions, RT#77641, RT#71513
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 14 Feb 2019 20:24:50 +0000
(12:24 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 14 Feb 2019 20:24:50 +0000
(12:24 -0800)
FS/FS/cust_main/Billing_Realtime.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main/Billing_Realtime.pm
b/FS/FS/cust_main/Billing_Realtime.pm
index
4ff2c06
..
1ac12ce
100644
(file)
--- a/
FS/FS/cust_main/Billing_Realtime.pm
+++ b/
FS/FS/cust_main/Billing_Realtime.pm
@@
-330,6
+330,8
@@
sub _bop_cust_payby_options {
# can be called as class method,
# but can't load default name/phone fields as class method
# can be called as class method,
# but can't load default name/phone fields as class method
+# (why was this added? ah, it might get called from realtime_tokenize in this
+# fashion "to tokenize old records on upgrade")
sub _bop_content {
my ($self, $options) = @_;
my %content = ();
sub _bop_content {
my ($self, $options) = @_;
my %content = ();
@@
-361,7
+363,7
@@
sub _bop_content {
$content{name} = $payname if $payname;
$content{name} = $payname if $payname;
- if ( exists($options->{'address1'}) ) {
+ if ( exists($options->{'address1'})
&& length($options->{'address1'})
) {
$content{address} = $options->{'address1'};
my $address2 = $options->{'address2'};
$content{address} = $options->{'address1'};
my $address2 = $options->{'address2'};