The agency should be able to help if your visa gets rejected. You will be entitled to a refund on many occasions. However, you must appeal your case before collecting the refund. The immigration agency should participate in this matter.