Implementation for Feature #12: updated transaction_ids for invoices when finalizing payments