--fixed for CRM-11983

used the same method like in CRM-11467 and also clean code, retrieved payment instrument and check from financial trxn rather from contribution table.