diff --git a/app/views/foodcourt/qrpay/init.html.erb b/app/views/foodcourt/qrpay/init.html.erb index d1965337..c384ca47 100644 --- a/app/views/foodcourt/qrpay/init.html.erb +++ b/app/views/foodcourt/qrpay/init.html.erb @@ -203,6 +203,11 @@
MMQR Payment +
+
+
+
+

Waiting for Customer Payment

Please ask customer to scan the QR code

<% if @qr_svg %> @@ -210,15 +215,11 @@ <%= raw @qr_svg %>
<% end %> -
-
-
-
+
+
-
- -
+ " id="server_mode">
@@ -271,6 +272,7 @@ $(document).ready(function() { console.log("Received:", data); if (data.status === "PAY_SUCCESS") { + $('#cancel-btn').hide(); this.handlePaymentSuccess(); } }, @@ -303,7 +305,7 @@ $(document).ready(function() { setTimeout(() => { window.location.href = "/"; - }, 3000); + }, 2000); } }, error: (xhr, status, error) => { diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 0bca1c86..bba10d8a 100755 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -149,7 +149,7 @@ <%# Top Bar - New Design %> <% if !request.path_info.include?('second_display') %> -