<?php echo $this->render('module/header.phtml'); ?>

<div class="conBox">
<div class="container widthDiv" style="padding-top:15px;">
	<div class="row">
		<div class="col-xs-12 categoryBox" style="padding-bottom:15px;">
		
		
		<h1 style="margin:0;font-size:26px;"><?php echo @Lib_Lang::translate(order_send_pay); ?></h1>
		
		<span style="font-size:18px;">
		<center><?php echo @Lib_Lang::translate(order_send_finish); ?> <b><?php echo $this->rowOrder['order_id']; ?></b></center>
		</span>
		<br />
		<br />


<script type='text/javascript'>
    // tutaj powinny się znaleźć informacje o zamówieniu
    opi_email = '<?php echo$this->opineo_email; ?>';
    opi_order_no = '<?php echo$this->rowOrder['order_id']; ?>';
    opi_queue = '1';
    opi_products = [
    ];
</script>
<script type='text/javascript' src='https://www.wiarygodneopinie.pl/shop/wo.js?uid=72d515f990'></script>



<?php if( $this->rowOrder['order_pay_type'] == 2 ){ ?>		
<form action="https://secure.payu.com/paygw/UTF/NewPayment" method="POST" name="payform">
    <input type="hidden" name="pos_id" value="<?php echo @PAY_pos_id; ?>">
    <input type="hidden" name="pos_auth_key" value="<?php echo @PAY_pos_auth_key; ?>">
    <input type="hidden" name="session_id" value="<?php echo $this->session_id; ?>">
    <input type="hidden" name="amount" value="<?php echo $this->amount; ?>">
    <input type="hidden" name="desc" value="<?php echo $this->desc; ?>">
    <input type="hidden" name="client_ip" value="<?php echo $this->client_ip; ?>">
    <input type="hidden" name="order_id" value="<?php echo $this->order_id; ?>">
    <input type="hidden" name="js" value="0">
    <input type="hidden" name="sig" value="<?php echo $this->sig; ?>">
    <input type="hidden" name="ts" value="<?php echo $this->ts; ?>">
	
	
	<div class="row">
		<div class="col-xs-12 text-right">
    <input class="buttonSendOrder2" type="submit" value="<?php echo @Lib_Lang::translate(order_send_order); ?>">
		</div>
	</div>
	
	
</form>
<script language="JavaScript" type="text/javascript">
    <!--
    document.forms['payform'].js.value=1;
    -->
</script>
<?php }else{ ?>

	<div class="row">
		<div class="col-xs-2"></div>
		<div class="col-xs-8">
		
		<?php echo str_replace('%PRICE%', $this->rowOrder['order_price'].' zł',  str_replace('%ORDER_NR%', $this->rowOrder['order_id'], @Lib_Lang::consta(content_description_.$this->rowContent['content_id']))); ?>
		
		</div>
		<div class="col-xs-2"></div>
	</div>

	
	<div class="row">
		<div class="col-xs-12 text-right">
    <a class="buttonSendOrder2" href="<?php echo @$this->url(array('controller' => 'index', 'action' => 'index'), 'default', true); ?>"><?php echo @Lib_Lang::translate(order_send_mainpage); ?></a>
		</div>
	</div>


<?php } ?>

<!-- Event snippet for Zakup conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': 'AW-590292809/-_rcCI2_iOABEMnOvJkC',
      'value': %PRICE%,
      'currency': 'PLN',
      'transaction_id': '%ORDER_NR%'
  });
</script>
		
		
		</div>
	</div>
</div>
</div>

<?php echo $this->render('module/footer.phtml'); ?>

