To help aid in this situation.
I figured out in ps_checkout an order number is created here:
function get_order_number() {
global $auth;
/* Generated a unique order number */
$str = session_id();
$str .= (string)time();
$order_number = $auth['user_id'] .'_'. md5($str);
return substr($order_number, 0, 32);
}
I also figured out that $order_id is what I am trying to pass through to Authorize to show up for their invoice number field. I have tried everything from making $order_number = $order_id, both in the above section as well in ps_authorize code, but no luck. Once I change something I end up getting an empty field with no order_id whatsoever.
Any help on how to get the order_id (vm order number) to display in the Authorize.net Invoice Number Field would be GREATLY appreciated.