From 75fa4436ff6e4124ebbe2305e7dadf6b5b33bf40 Mon Sep 17 00:00:00 2001 From: aungthetkhaing Date: Wed, 28 May 2025 11:22:17 +0630 Subject: [PATCH] ws channel close after payment success --- app/views/foodcourt/qrpay/init.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/foodcourt/qrpay/init.html.erb b/app/views/foodcourt/qrpay/init.html.erb index 8901f7e5..dc060573 100644 --- a/app/views/foodcourt/qrpay/init.html.erb +++ b/app/views/foodcourt/qrpay/init.html.erb @@ -305,6 +305,7 @@ $(document).ready(function() { setTimeout(function() { window.location.href = "/"; }, 3000); + ws.close(); } }, error: function(xhr, status, error) {