projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6c799b
)
don't even send an empty avsCountryCode for non-US/CA/GB/UK country, RT#21415
author
Ivan Kohler
<ivan@freeside.biz>
Sun, 17 Feb 2013 23:51:31 +0000
(15:51 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Sun, 17 Feb 2013 23:51:31 +0000
(15:51 -0800)
FS/FS/pay_batch/paymentech.pm
patch
|
blob
|
history
diff --git
a/FS/FS/pay_batch/paymentech.pm
b/FS/FS/pay_batch/paymentech.pm
index
3021bb6
..
594c895
100644
(file)
--- a/
FS/FS/pay_batch/paymentech.pm
+++ b/
FS/FS/pay_batch/paymentech.pm
@@
-139,10
+139,10
@@
my %paymentech_countries = map { $_ => 1 } qw( US CA GB UK );
avsCity => substr($_->city, 0, 20),
avsState => substr($_->state, 0, 2),
avsName => substr($_->first. ' '. $_->last, 0, 30),
avsCity => substr($_->city, 0, 20),
avsState => substr($_->state, 0, 2),
avsName => substr($_->first. ' '. $_->last, 0, 30),
-
avsCountryCode =>
( $paymentech_countries{ $_->country }
- ? $_->country
- : ''
-
),
+ ( $paymentech_countries{ $_->country }
+ ? ( avsCountryCode => $_->country )
+ : ()
+ ),
orderID => $_->paybatchnum,
amount => $_->amount * 100,
);
orderID => $_->paybatchnum,
amount => $_->amount * 100,
);