diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-02-17 15:50:35 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-02-17 15:50:35 -0800 |
commit | 9ab92d47962317a7d87de290a12a1720ad8e7963 (patch) | |
tree | 88a4ac81aad2026670c4a8d6f108c91333084c14 | |
parent | 36f1049adb6b4de47684ec53cd8b2fcb672e9080 (diff) |
don't even send an empty avsCountryCode for non-US/CA/GB/UK country, RT#21415
-rw-r--r-- | Paymentech.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Paymentech.pm b/Paymentech.pm index fd3f4ae..027bbee 100644 --- a/Paymentech.pm +++ b/Paymentech.pm @@ -172,10 +172,10 @@ sub format_item { avsCity => substr($item->city, 0, 20), avsState => substr($item->state, 0, 2), avsName => substr($item->first_name. ' '. $item->last_name, 0, 30), - avsCountryCode => ( $paymentech_countries{ $item->country } - ? $_->country - : '' - ), + ( $paymentech_countries{ $item->country } + ? ( avsCountryCode => $item->country ) + : () + ), orderID => $item->tid, amount => int( $item->amount * 100 ), ); |