<?php
/**
 * @package	HikaShop for Woobookingpro!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

use WpBookingHotel\Factory;
use WpBookingHotel\Language\Text;

defined('_WPBOOKINGHOTEL_EXEC') or die('Restricted access');
?><div class="hikashop_paypal_end" id="hikashop_paypal_end">
	<br/>
	<form id="hikashop_paypal_form" name="hikashop_paypal_form" action="<?php echo ($this->payment_params->url);?>" method="post">
		<div id="hikashop_paypal_end_image" class="hikashop_paypal_end_image">
            <p><?php esc_html_e('Click on "Check Out" below, you will be redirected towards the secure site of PayPal','wpbookinghotel');?></p>
            <div class="img-paypal">
                <div>
                    <img class="lazy" data-src="<?php echo(Factory::getRootUrlPlugin().'lib/payments/paypal/images/paypal_feature-452x250.jpg') ?>" alt="paypal-method">
                </div>
            </div>
			<input id="hikashop_paypal_button" type="submit" class="btn btn-primary" value="<?php esc_attr_e('Check out', 'wpbookinghotel');?>" name="" alt="<?php esc_attr_e('Check out','wpbookinghotel');?>" onclick="document.getElementById('hikashop_paypal_form').submit(); return false;"/>
		</div>
		<?php

        foreach($this->vars as $name => $value ) {
				echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars((string)$value).'" />';
			}
			//JRequest::setVar('noform',1); ?>
	</form>
	<script type="text/javascript">
		<!--
		///document.getElementById('hikashop_paypal_form').submit();
		//-->
	</script>
	<!--[if IE]>
	<script type="text/javascript">
			document.getElementById('hikashop_paypal_button').style.display = 'none';
			document.getElementById('hikashop_paypal_button_message').innerHTML = '';
	</script>
	<![endif]-->
</div>
