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 ),
);