summaryrefslogtreecommitdiff
path: root/FS/FS/pay_batch
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-02-17 15:51:29 -0800
committerIvan Kohler <ivan@freeside.biz>2013-02-17 15:51:29 -0800
commit2b4aa0130467d2b992526a66f649464742defa1d (patch)
tree472252e349a2302af603f7a6253393812d569571 /FS/FS/pay_batch
parent0da59a28d129728c18481ca80e8841585b69dd0c (diff)
don't even send an empty avsCountryCode for non-US/CA/GB/UK country, RT#21415
Diffstat (limited to 'FS/FS/pay_batch')
-rw-r--r--FS/FS/pay_batch/paymentech.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/pay_batch/paymentech.pm b/FS/FS/pay_batch/paymentech.pm
index 47be4eb..1ecf35a 100644
--- a/FS/FS/pay_batch/paymentech.pm
+++ b/FS/FS/pay_batch/paymentech.pm
@@ -130,10 +130,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),
- avsCountryCode => ( $paymentech_countries{ $_->country }
- ? $_->country
- : ''
- ),
+ ( $paymentech_countries{ $_->country }
+ ? ( avsCountryCode => $_->country )
+ : ()
+ ),
orderID => $_->paybatchnum,
amount => $_->amount * 100,
);