You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
6.8 KiB

6 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="~{fragments/user-head :: head}"></head>
  4. <!-- Bootstrap CSS -->
  5. <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
  6. <style>
  7. .header {
  8. background-color: #1d495a;
  9. padding: 10px 20px;
  10. color: white;
  11. font-family: Arial, sans-serif;
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. flex-direction: column;
  16. text-align: center;
  17. }
  18. .header .logo img {
  19. height: 50px;
  20. margin-bottom: 5px;
  21. }
  22. .center-text {
  23. font-size: 20px;
  24. }
  25. @media (min-width: 768px) {
  26. .header {
  27. flex-direction: row;
  28. justify-content: space-between;
  29. text-align: left;
  30. }
  31. .header .center-text {
  32. font-size: 24px;
  33. position: absolute;
  34. left: 50%;
  35. transform: translateX(-50%);
  36. }
  37. }
  38. </style>
  39. <header th:replace="~{user/razor-pay :: header}"></header>
  40. <body style="background-color: #ebf1fa;">
  41. <!-- Responsive Header -->
  42. <div class="header">
  43. <div class="logo">
  44. <img src="https://gccservices.in/gcc/assets/images/logo.png" alt="Logo">
  45. </div>
  46. <div class="center-text">GREATER CHENNAI CORPORATION</div>
  47. </div>
  48. <!-- Payment Details Card -->
  49. <div class="container mt-4 mb-4">
  50. <div class="card shadow-lg">
  51. <div class="card-header bg-dark text-white">
  52. <h4 class="mb-0 text-center text-md-left text-white">Victoria Publichall Payment Details</h4>
  53. </div>
  54. <div class="card-body">
  55. <!-- Row 1 -->
  56. <div class="form-group">
  57. <label class="form-label fw-bold">Name:</label>
  58. <input type="text" class="form-control" th:value="${booking.name}" readonly />
  59. </div>
  60. <div class="form-group">
  61. <label class="form-label fw-bold">
  62. <span th:text="${booking.mob_no != null && booking.mob_no != '' ? 'Phone No' : 'Email'}"></span>:
  63. </label>
  64. <input type="text" id="paymentNumber" class="form-control"
  65. th:value="${contact}"
  66. readonly />
  67. </div>
  68. <!-- Row 2 -->
  69. <div class="form-group">
  70. <label class="form-label fw-bold">Payment Purpose:</label>
  71. <input type="text" class="form-control" value="Victoria Hall Visit Charges" readonly />
  72. </div>
  73. <div class="form-group">
  74. <label class="form-label fw-bold">Amount:</label>
  75. <input type="text" class="form-control" th:value="${booking.total_amount}" readonly />
  76. </div>
  77. <!-- Terms and Conditions Checkbox -->
  78. <div class="form-check mt-3 text-center">
  79. <input class="form-check-input" type="checkbox" id="termsCheck">
  80. <label class="form-check-label" for="termsCheck">
  81. I agree to the <a href="#" data-bs-toggle="modal" data-bs-target="#termsModal">terms and conditions</a>.
  82. </label>
  83. </div>
  84. <div class="text-center mt-4">
  85. <span style="background-color: #f8d7da; color: #721c24; padding: 5px 10px; border-radius: 4px;">
  86. ⚠️ Important: Do not refresh or close the page after clicking the payment button until the payment is confirmed.
  87. </span>
  88. </div>
  89. <!-- Confirm Button -->
  90. <div class="text-center mt-4">
  91. <button type="button" class="btn btn-success btn-block btn-lg" id="submitBtn"
  92. th:onclick="paymentStart([[${booking.ref_id}]],[[${booking.total_amount}]],[[${isbulk}]])" disabled>Confirm Payment</button>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <!-- Modal -->
  98. <div class="modal fade" id="termsModal" tabindex="-1" aria-labelledby="termsModalLabel" aria-hidden="true">
  99. <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable">
  100. <div class="modal-content">
  101. <div class="modal-header bg-primary text-white">
  102. <h5 class="modal-title" id="termsModalLabel">Terms and Conditions</h5>
  103. <!-- <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button> -->
  104. <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"
  105. style="color:black;border: white;background-color: white;">
  106. <span aria-hidden="true">&times;</span>
  107. </button>
  108. </div>
  109. <div class="modal-body border p-4">
  110. <ol>
  111. <li>By accepting to make Payment online it is implied that you agree to the terms and conditions of Netbanking System/Credit Card company.</li>
  112. <li>All payments are processed via secure third-party gateways. Greater Chennai Corporation does not store your card or bank information.</li>
  113. <li>The actual updation of payment by Greater Chennai Corporation will take place after getting confirmation from the Banks.</li>
  114. <li>All charges related to waste collection and processing fees are non-refundable once successfully paid.</li>
  115. <li>If a transaction fails but funds are debited, the refund will be processed automatically by the bank/payment gateway. Greater Chennai Corporation is not responsible for delays in such refunds.</li>
  116. <li>In the exigency of connection getting timed out or user clicking to close the browser before getting payment confirmation message he/she has to wait for 15 minutes before proceeding to make subsequent payment for the same Request ID.</li>
  117. </ol>
  118. </div>
  119. <div class="modal-footer justify-content-center">
  120. <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <!-- Scripts -->
  126. <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  127. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  128. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
  129. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
  130. <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  131. <script>
  132. $(document).ready(function () {
  133. $('#termsCheck').on('change', function () {
  134. $('#submitBtn').prop('disabled', !this.checked);
  135. });
  136. });
  137. </script>
  138. </body>
  139. </html>