From bdeb6255706f97de68e7fa8a36007f29d3795f9b Mon Sep 17 00:00:00 2001 From: hugh-unicenta Date: Sat, 11 Nov 2023 15:17:54 +0000 Subject: [PATCH] payment window fix --- .../com/unicenta/pos/payment/PaymentGatewayPaymentSense.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/unicenta/pos/payment/PaymentGatewayPaymentSense.java b/src/main/java/com/unicenta/pos/payment/PaymentGatewayPaymentSense.java index b11945e..475b553 100644 --- a/src/main/java/com/unicenta/pos/payment/PaymentGatewayPaymentSense.java +++ b/src/main/java/com/unicenta/pos/payment/PaymentGatewayPaymentSense.java @@ -67,7 +67,8 @@ public class PaymentGatewayPaymentSense implements PaymentGateway { int timer = 0; int timeout = 180; - new Application().paymentSenseTransaction(RoundUtils.round(payinfo.getTotal()), getPaymentWindow()); + double roundedValue = RoundUtils.round(payinfo.getTotal()); + new Application().paymentSenseTransaction(roundedValue, getPaymentWindow(roundedValue)); while (AppContext.getIsProcessing() == null || AppContext.getIsProcessing()) { try {