Added ability to set transaction type when assigning a payment trans.