Código:
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
class ISPPluginPaymentPaynexus
{
function getForm() {
$params = ISPHelperPayment::getParams();
$subject = $_SESSION['paymentsubject'];
$shopid = $params->get('shopid');
$test = $params->get('test','no');
$amount = $_SESSION['amount'];
$button = $params->get('button','Pay now!');
if( $test == 'yes') {
$url = 'http://dev.paynexus.com/pagos/index.jsp';
} else {
$url = 'https://www.paynexus.com/pagos/index.jsp';
}
return '<form action="'.$url.'" method="post">' .
'<input type="hidden" name="OPCODE" value="100" />' .
'<input type="hidden" name="SHOPID" value="'.$shopid.'" />' .
'<input type="hidden" name="CARTID" value="'.$subject.'" />' .
'<input type="hidden" name="AMOUNT" value="'.$amount.'" />' .
'<input type="hidden" name="DATE" value="'.date('Y-m-d').'" />' .
'<input type="hidden" name="TIME" value="'.date("H:i:s").'" />' .
'<input type="submit" value="'.$button.'">' .
'</form>';
}
function getLink() {
return false;
}
}


