public function onExecuteOrder(GWF_Module $module, GWF_Order $order) { // if (false === $order->saveVar('order_status', GWF_Order::PAID)) { // return $this->logCriticalError($module, $order); // } if (false === $order->execute()) { return $this->logCriticalError($module, $order); } // if (false === $order->saveVar('order_status', GWF_Order::PROCESSED)) { // return $this->logCriticalError($module, $order); // } return $this->message('msg_paid'); }