mirror of
https://github.com/kikobar/hikashoppayment-triplea.git
synced 2024-12-23 06:14:11 +00:00
18 lines
877 B
PHP
18 lines
877 B
PHP
|
<?php
|
||
|
defined('_JEXEC') or die('Restricted access');
|
||
|
?><div class="hikashop_triplea_end" id="hikashop_triplea_end">
|
||
|
<form id="hikashop_triplea_form" name="hikashop_triplea_form" action="<?php echo $this->payment_params->url;?>" method="post">
|
||
|
<div id="hikashop_triplea_end_image" class="hikashop_triplea_end_image">
|
||
|
<input id="hikashop_triplea_button" type="submit" class="btn btn-primary" value="<?php echo JText::_('PAY_NOW');?>" name="" alt="<?php echo JText::_('PAY_NOW');?>" />
|
||
|
</div>
|
||
|
<?php
|
||
|
foreach( $this->vars as $name => $value ) {
|
||
|
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars((string)$value).'" />';
|
||
|
}
|
||
|
$doc = JFactory::getDocument();
|
||
|
$doc->addScriptDeclaration("window.hikashop.ready( function() {document.getElementById('hikashop_triplea_form').submit();});");
|
||
|
JRequest::setVar('noform',1);
|
||
|
?>
|
||
|
</form>
|
||
|
</div>
|