private function onOrder(GWF_Download $dl) { // Check for Payment, as it`s not a required dependency. if (false === ($mod_pay = GWF_Module::getModule('Payment'))) { return GWF_HTML::err('ERR_MODULE_MISSING', array('Payment')); } $user = GWF_User::getStaticOrGuest(); $paysite = Common::getPost('paysite', 'xx'); $dl->setVar('your_token', GWF_DownloadToken::generateToken()); return Module_Payment::displayOrder2S($this->module, $dl, $user, $paysite); }