I need some help regarding calculating the right total through my app which will start a payment sale request to charge the customers.
The merchants can add a misc fee to a custom sale done through my app. This misc fee is created as a variable line item in inventory and customer can add taxes to it.
Now when I try to create a sale from my app, the misc fee adds up and show for a total of 10.24$ iny my app.
Now when I perform sale request for that, on clover payment connector it shows 10.25$. I tried using Round.HALF_UP but still no luck. For some values, it shows right amount. For other values it shows a 1 cent off on clover display. Need help with in how I can proceed.