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 {