praveen| dont confirm payment if it is a refund
praveen|cleaning up code