<?php
defined('_JEXEC') or die();

/**
 * @author Valérie Isaksen
 * @version $Id: render_pluginname.php 7198 2013-09-13 13:09:01Z alatak $
 * @package VirtueMart
 * @subpackage vmpayment
 * @copyright Copyright (C) 2004 - 2014 Virtuemart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
 *
 * http://virtuemart.net
 */

?>
<span class="klikandpay vmpayment">
	<?php
	if (!empty($viewData['logo'])) {
		?>
		<span class="vmCartPaymentLogo">
			<?php echo $viewData['logo'] ?>
        </span>
	<?php
	}
	?>
	<span class="vmpayment_name"><?php echo $viewData['payment_name'] ?> </span>
	<?php
	if ($viewData['shop_mode'] == 'test') {
		?>
		<span style="color:red;font-weight:bold">Sandbox (<?php echo $viewData['virtuemart_paymentmethod_id'] ?>)</span>
	<?php
	}
	?>
	<?php
	if (!empty($viewData['payment_description'])) {
		?>
		<span class="vmpayment_description"><?php echo $viewData['payment_description'] ?> </span>
	<?php
	}
	?>
	<?php
	if (isset($viewData['extraInfo']['recurring'])) {
		?>
		<div class="vmpayment_recurring">
			<?php echo $viewData['extraInfo']['recurring']; ?>
		</div>
	<?php
	}
	?>
	<?php
	if (isset($viewData['extraInfo']['subscribe']) and !empty($viewData['extraInfo']['subscribe'])) {
		?>
		<div class="vmpayment_subscribe">
			<?php
			if (isset($viewData['extraInfo']['subscribe']['subscribe_test_amount']) and !empty($viewData['extraInfo']['subscribe']['subscribe_test_amount'])) {
				echo vmText::_('VMPAYMENT_KLIKANDPAY_CONF_SUBSCRIBE_TEST_AMOUNT') . ": " . $viewData['extraInfo']['subscribe']['subscribe_test_amount'] . "<br />";
			}
			if (isset($viewData['extraInfo']['subscribe']['subscribe_test_period']) and !empty($viewData['extraInfo']['subscribe']['subscribe_test_period'])) {
				echo vmText::_('VMPAYMENT_KLIKANDPAY_CONF_SUBSCRIBE_TEST_PERIOD') . ": " . $viewData['extraInfo']['subscribe']['subscribe_test_period'] . "<br />";
			}
			if (isset($viewData['extraInfo']['subscribe']['subscribe_due_date_amount']) and !empty($viewData['extraInfo']['subscribe']['subscribe_due_date_amount'])) {
				echo vmText::_('VMPAYMENT_KLIKANDPAY_CONF_SUBSCRIBE_DUE_DATE_AMOUNT') . " :" . $viewData['extraInfo']['subscribe']['subscribe_due_date_amount'] . "<br />";
			}
			if (isset($viewData['extraInfo']['subscribe']['subscribe_frequency']) and !empty($viewData['extraInfo']['subscribe']['subscribe_frequency'])) {
				echo vmText::sprintf('VMPAYMENT_KLIKANDPAY_CONF_SUBSCRIBE_FREQUENCY') . ": " . $viewData['extraInfo']['subscribe']['subscribe_frequency'] . "<br />";
			}
			?>
		</div>
	<?php
	}
	?>
</span>



