From 065acd93f6c13fc4c74c785c12cf4dcb96826998 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Mon, 23 Jun 2025 00:39:42 +0800 Subject: [PATCH] FIx FPS cancel --- src/pages/Payment/FPS/FPS.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/pages/Payment/FPS/FPS.js b/src/pages/Payment/FPS/FPS.js index 8bd049d..ed8b6d0 100644 --- a/src/pages/Payment/FPS/FPS.js +++ b/src/pages/Payment/FPS/FPS.js @@ -286,7 +286,8 @@ const Index = () => { } }, onError: function(){ - cancelPayment() + alert("ERROR") + // cancelPayment() // clearInterval(currentTimer.current); } }); @@ -301,16 +302,17 @@ const Index = () => { // console.log(timeOutDate) // console.log(currentTime) // console.log(timeOutDate.getTime()-currentTime.getTime()) - getPaymentStatus(); - - if (timeOutDate.getTime()