confirm-order.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php include('header.php') ?>
  2. <?php
  3. require_once 'PayfortIntegration.php';
  4. $objFort = new PayfortIntegration();
  5. $amount = $objFort->amount;
  6. $currency = $objFort->currency;
  7. $totalAmount = $amount;
  8. $paymentMethod = $_REQUEST['payment_method'];
  9. ?>
  10. <section class="nav">
  11. <ul>
  12. <li class="lead" >Payment Method</li>
  13. <li class="lead active" > Pay</li>
  14. <li class="lead" > Done</li>
  15. </ul>
  16. </section>
  17. <section class="confirmation">
  18. <label>Confirm Your Order</label>
  19. </section>
  20. <section class="order-info">
  21. <ul class="items">
  22. <span>
  23. <i class="icon icon-bag"></i>
  24. <label class="lead" for="">Your Order</label>
  25. </span>
  26. <li><?php echo $objFort->itemName ?></li>
  27. <!-- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ex magni delectus aliquam debitis</li> -->
  28. </ul>
  29. <ul>
  30. <li>
  31. <div class="v-seperator"></div>
  32. </li>
  33. </ul>
  34. <ul class="price">
  35. <span>
  36. <i class="icon icon-tag"></i>
  37. <label class="lead" for="">price</label>
  38. </span>
  39. <li><span class="curreny">$</span> <?php echo sprintf("%.2f",$totalAmount);?> </li>
  40. </ul>
  41. <ul class="items">
  42. <span>
  43. <i class="icon icon-bag"></i>
  44. <label class="lead" for="">Payment Method</label>
  45. </span>
  46. <li><?php echo $objFort->getPaymentOptionName($paymentMethod) ?></li>
  47. </ul>
  48. </section>
  49. <?php if($paymentMethod == 'cc_merchantpage' || $paymentMethod == 'installments_merchantpage') ://merchant page iframe method ?>
  50. <section class="merchant-page-iframe">
  51. <?php
  52. $merchantPageData = $objFort->getMerchantPageData($paymentMethod);
  53. $postData = $merchantPageData['params'];
  54. $gatewayUrl = $merchantPageData['url'];
  55. ?>
  56. <div class="cc-iframe-display">
  57. <div id="div-pf-iframe" style="display:none">
  58. <div class="pf-iframe-container">
  59. <div class="pf-iframe" id="pf_iframe_content">
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </section>
  65. <?php endif; ?>
  66. <div class="h-seperator"></div>
  67. <section class="actions">
  68. <a class="back" id="btn_back" href="index.php">Back</a>
  69. </section>
  70. <script type="text/javascript" src="vendors/jquery.min.js"></script>
  71. <script type="text/javascript" src="assets/js/checkout.js"></script>
  72. <script type="text/javascript">
  73. $(document).ready(function () {
  74. var paymentMethod = '<?php echo $paymentMethod?>';
  75. //load merchant page iframe
  76. if(paymentMethod == 'cc_merchantpage' || paymentMethod == 'installments_merchantpage') {
  77. getPaymentPage(paymentMethod);
  78. }
  79. });
  80. </script>
  81. <?php include('footer.php') ?>