From 3f66dc63c5f6f6e48dcf11c1a58984fff47bfe8e Mon Sep 17 00:00:00 2001 From: aungthetkhaing Date: Tue, 3 Jun 2025 11:46:31 +0630 Subject: [PATCH] receive ws data --- app/views/foodcourt/qrpay/init.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/foodcourt/qrpay/init.html.erb b/app/views/foodcourt/qrpay/init.html.erb index 9287e49c..ba8c89bc 100644 --- a/app/views/foodcourt/qrpay/init.html.erb +++ b/app/views/foodcourt/qrpay/init.html.erb @@ -341,7 +341,7 @@ $(document).ready(function() { fallbackTimeout = setTimeout(checkPaymentStatus, 30000); }, - received() { + received(data) { console.log("Received:", data); if (data.status === "PAY_SUCCESS" && !paymentProcessed) { clearTimeout(fallbackTimeout);