<input type="submit" value="<?php echo _DMP_SUBMITORDER; ?>" /> <input type="hidden" name="task" value="submit_order" /> <input type="hidden" name="option" value="<?php echo $option; ?>"> <input type="hidden" name="mode" value="<?php echo $mode; ?>"> <input type="hidden" name="id" value="<?php echo JRequest::getInt('id'); ?>"> </form> <?php //include_once('paypal.php'); break; case "submit_order": $merchant = JRequest::getVar('merchant','paypal'); //$merchant = 'paypal'; if ($dm->expired) { $mainframe->enqueueMessage('PayPal IPN for DOCman Trial version has expired, visit <a href="http://motov.net/downloads/paypal-paid-downloads/paypal-ipn-for-docman-3-2-5-stable/download/doc_download">this link</a> to obtain a full version.','error'); $dm->sendExpiredEmail(); $mainframe->redirect('index.php'); } //echo $merchant; //$jhtml = new JHTML; $js = ' jQuery(function() { document.dmp_order_form.submit(); })(); '; $document->addScriptDeclaration($js); $dm_id = JRequest::getVar('id',null,null,'int'); $tmp = $dm->makeBlankOrder($dm_id,JRequest::getVar('mode')); $order_id = $tmp['id']; $key = $tmp['key']; switch ($merchant) {