diff --git a/xml/page_payment_cash.xml b/xml/page_payment_cash.xml index d6020a44..c5f6bfa0 100644 --- a/xml/page_payment_cash.xml +++ b/xml/page_payment_cash.xml @@ -196,6 +196,9 @@ Var SendCancelActionFlag = 0 Var CancelingPopupCountDown = 0 + Var PopupTimeout = 20 + Var PopupTimeoutEnable = "Invisible" + Var CashTextWarning = "" Var QRErrorState = "Invisible" Var QRErrorFlag = 0 @@ -1965,6 +1968,7 @@ If KBankCashlessMachine = 1 Then ; popup will close after 30 second Var Timeout = 90 + Var PopupTimeoutEnable = "Invisible" Var cancelButtonQRPopupState = "Enable" Else Var Timeout = 0 @@ -2397,6 +2401,21 @@ EndIf EndIf + If KBankCashlessMachine = 1 Then + If alphaState = "Enable" Then + If ReqPayInfoFromCashOther = 2 Then + If PopupTimeoutEnable = "Enable" Then + If PopupTimeout > 0 Then + Var PopupTimeout = PopupTimeout - 1 + Else + Var PopupTimeoutEnable = "Invisible" + Var cancelButtonQRPopupState = "Enable" + EndIf + EndIf + EndIf + EndIf + EndIf + Refresh TimerReset @@ -3048,6 +3067,8 @@ If KBankCashlessMachine = 1 Then Var QR_POPUP = "/img_popup8_with_service_charge.png" Var cancelButtonQRPopupState = "Invisible" + Var PopupTimeoutEnable = "Enable" + Var PopupTimeout = 20 Else Var QR_POPUP = "/img_popup8.png" Var cancelButtonQRPopupState = "Enable" @@ -3283,6 +3304,18 @@ eval( + + 766 + 777 + PopupTimeoutEnable + 50 + 25 + center-vertical-horizontal + RobotoRegular + 0xDE794E + PopupTimeout + + ; begin cash popup