updated code to give error msg for declined payments and added some missing fields to transaction data