Example #1
0
 function angel_find_transaction()
 {
     foreach ($this->page_map as $index => $value) {
         ${$value} = $index;
     }
     //checking_account,credit_card,rounting_number
     $lookup = new lookup_class();
     $trans = $lookup->find_general_trans($this->params);
     toLog('order', 'customer', "Angel Lookup: \n\t" . print_r($this->params, true) . "\n\tFound:\n\t" . print_r($trans, true) . "\n\n");
     if ($trans == NULL) {
         $this->working_vars['tries'] = isset($this->working_vars['tries']) ? $this->working_vars['tries'] + 1 : 0;
         if ($this->working_vars['tries'] == 2) {
             $trans = $lookup->find_general_trans("", "", $this->params['CallerID']);
             if ($trans == NULL) {
                 return $this->angel_no_transaction();
             }
             return $this->angel_transfer_callcenter();
         }
         return $this->angel_prompt_field();
     }
     $this->working_vars['transactions'] = $trans;
     $this->working_vars['current_trans'] = 0;
     if (sizeof($trans) > 1) {
         return $this->angel_multi_trans();
     }
     $this->working_vars['current_trans'] = 1;
     return $this->angel_process_transaction();
 }