We were not updating the payment type nor last four digits when transactions are pulled in from the batch import process.
We were inserting with those fields correctly if we didn't have the transaction originally, however when updating we weren't updating those fields for that transaction.
This causes refunds to not work, because we don't know the payment type and it fails.