Added refund and give credit functionality