Compare refund's cents to  original_amount.

Transaction#amount is a string and so it can't be properly compared
to an integer.