1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php include('header.php') ?>
- <?php
- require_once 'PayfortIntegration.php';
- $objFort = new PayfortIntegration();
- $amount = $objFort->amount;
- $currency = $objFort->currency;
- $totalAmount = $amount;
- $paymentMethod = $_REQUEST['payment_method'];
- ?>
- <section class="nav">
- <ul>
- <li class="lead" >Payment Method</li>
- <li class="lead active" > Pay</li>
- <li class="lead" > Done</li>
- </ul>
- </section>
- <section class="confirmation">
- <label>Confirm Your Order</label>
- </section>
- <section class="order-info">
- <ul class="items">
- <span>
- <i class="icon icon-bag"></i>
- <label class="lead" for="">Your Order</label>
- </span>
- <li><?php echo $objFort->itemName ?></li>
- <!-- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ex magni delectus aliquam debitis</li> -->
- </ul>
- <ul>
- <li>
- <div class="v-seperator"></div>
- </li>
- </ul>
- <ul class="price">
- <span>
- <i class="icon icon-tag"></i>
- <label class="lead" for="">price</label>
- </span>
- <li><span class="curreny">$</span> <?php echo sprintf("%.2f",$totalAmount);?> </li>
- </ul>
- <ul class="items">
- <span>
- <i class="icon icon-bag"></i>
- <label class="lead" for="">Payment Method</label>
- </span>
- <li><?php echo $objFort->getPaymentOptionName($paymentMethod) ?></li>
- </ul>
- </section>
- <?php if($paymentMethod == 'cc_merchantpage' || $paymentMethod == 'installments_merchantpage') ://merchant page iframe method ?>
- <section class="merchant-page-iframe">
- <?php
- $merchantPageData = $objFort->getMerchantPageData($paymentMethod);
- $postData = $merchantPageData['params'];
- $gatewayUrl = $merchantPageData['url'];
- ?>
- <div class="cc-iframe-display">
- <div id="div-pf-iframe" style="display:none">
- <div class="pf-iframe-container">
- <div class="pf-iframe" id="pf_iframe_content">
- </div>
- </div>
- </div>
- </div>
- </section>
- <?php endif; ?>
- <div class="h-seperator"></div>
- <section class="actions">
- <a class="back" id="btn_back" href="index.php">Back</a>
- </section>
- <script type="text/javascript" src="vendors/jquery.min.js"></script>
- <script type="text/javascript" src="assets/js/checkout.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- var paymentMethod = '<?php echo $paymentMethod?>';
- //load merchant page iframe
- if(paymentMethod == 'cc_merchantpage' || paymentMethod == 'installments_merchantpage') {
- getPaymentPage(paymentMethod);
- }
- });
- </script>
- <?php include('footer.php') ?>
|