forked from Payfast/mod-hikashop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayfast_end.php
36 lines (35 loc) · 1.88 KB
/
payfast_end.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* @package PayFast Plugin for HikaShop Joomla!
* @version 1.0.0
* @author payfast.co.za
* Copyright (c) 2008 PayFast (Pty) Ltd
* You (being anyone who is not PayFast (Pty) Ltd) may download and use this plugin / code in your own website in conjunction with a registered and active PayFast account. If your PayFast account is terminated for any reason, you may not use this plugin / code or part thereof.
* Except as expressly indicated in this licence, you may not use, copy, modify or distribute this plugin / code or part thereof in any way.
*/
defined('_JEXEC') or die('Restricted access');
?><div class="hikashop_payfast_end" id="hikashop_payfast_end">
<span id="hikashop_payfast_end_message" class="hikashop_payfast_end_message">
<?php echo JText::sprintf('PLEASE_WAIT_BEFORE_REDIRECTION_TO_X', $this->payment_name).'<br/>'. JText::_('CLICK_ON_BUTTON_IF_NOT_REDIRECTED');?>
</span>
<span id="hikashop_payfast_end_spinner" class="hikashop_payfast_end_spinner hikashop_checkout_end_spinner">
</span>
<br/>
<form id="hikashop_payfast_form" name="hikashop_payfast_form" action="<?php echo $this->vars['payfast_url']; ?>" method="post">
<div id="hikashop_payfast_end_image" class="hikashop_payfast_end_image">
<input id="hikashop_payfast_button" type="submit" class="btn btn-primary" value="<?php echo JText::_('PAY_NOW');?>" name="" alt="<?php echo JText::_('PAY_NOW');?>" />
</div>
<?php
unset( $this->vars['payfast_url'] );
foreach($this->vars as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.$value.'" />';
}
$app = JFactory::getApplication();
$app->input->set('noform',1); ?>
</form>
<script type="text/javascript">
<!--
document.getElementById('hikashop_payfast_form').submit();
//-->
</script>
</div>