Get ticket object in payment processor

I’ve been thinking about this post:

If the ticket object is available to be parsed, then input can be asked for tip and then, via the API, a calculation and a payment can be added.

For my personal use, I am still working with exchange rate remainders. I would like to be able to get the remaining total and if it is <5 process the remainder as a rounding calculation.