How would I go about setting Linkpoint to set orders to pending if they are considered "Potentially Fraudulent"? Would it be something like this:

Code:
  function after_process() {
    <snip>
    $db->Execute("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (comments, orders_id, orders_status_id, date_added) values ('Credit Card payment.  " . $comments . " " . $this->cc_card_type . " AUTH: " . $this->auth_code . ". TransID: " . $this->transaction_id . ".' , '". (int)$insert_id . "','" . $this->order_status . "', now() )");

   if ((substr($result['r_code'], 17, 2) != "YY"))
    {
    $db->Execute("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (comments, orders_id, orders_status_id, date_added) values ('Your order is pending due to an incorrect billing address.' , '". (int)$insert_id . "','" . $this->order_status . "', now() )");
    }

  return false;
}
I'm pretty sure that will work but it would keep the order status as Processing. Is there anyway to have it changed to pending? Also, would this e-mail the customer? I'm assuming it won't.. I don't really need it to since most of my customers will order and then view it in their account.. so as long as its instant that would be great. The "Your order is pending due to an incorrect billing address." part I'll be changing around but kept there for example purposes. Thanks!