/** * Update order comments * * @return false */ public function afterProcess() { global $order; $status = strtolower($_SESSION['klarna_orderstatus']); $customer = KlarnaConstant::getOrderStatusId($this->_option); $order->info['order_status'] = $customer; // Set the order status id for our pending status to -1 to prevent it // from being shown to customers. $this->_utils->updateOrderDatabase($customer, -1); return false; }