public function success_paymentAction() { $this->noViewRenderer(true); $request = $this->getRequest(); $info = Model_Orders::get(JO_Session::get('order_id')); if ($info && $info['paid'] == 'true') { Model_Orders::orderIsPay($info['id']); JO_Session::set('msg_success', $this->translate('You have successfully made a payment!')); } else { JO_Session::clear('order_id'); JO_Session::set('msg_error', $this->translate('Your payment have status ' . WM_Orderstatuses::orderStatuses($info['order_status_id']))); } $this->redirect(WM_Router::create($request->getBaseUrl() . '?controller=users&action=downloads')); }