Correctly detect if a transaction is a payment.