That empty() won't work. Do this instead: private function
_authN_addLineItem(&$to,$item) { //wrapper for authNet's crappy
addLineItem if (!isset($this->_authN_addLineItem_hash))
$this->_authN_addLineItem_hash = array(); for
($i=0,$c=count($item);$i<...
Use something like this: private function _authN_addLineItem(&$to,$item)
{ //wrapper for authNet's crappy addLineItem for
($i=0,$c=count($item);$i<$c;$i++) { $item[$i] = substr($item[$i],0,30);
} if (empty($to->line_item)) $to->line_item = implode('<...