Submit Your Record



}); function onlinePayment(){ var price = parseFloat($('#price').val()); if(price > 0){ if(validateForm()){ var options = { "key": "rzp_test_9ajmxIw5fiQKiH", "amount": (price*100), // 2000 paise = INR 20 "name": "IRA Registration", "description": $('#type-name').val(), "image": "", "handler": function (response){ $('#transaction_id').val(response.razorpay_payment_id); $('#applynowForm').submit(); return false; }, "prefill": { "contact": '-', "name": '-', "email": '-' }, "notes": { "details": $(this).attr('data-typename')+" Application" }, "theme": { "color": "#e87817" } }; var rzp1 = new Razorpay(options); rzp1.open(); return false; } else{ return false; } } return true; } function validateForm(){ var title = $("#title").val(); var name = $("#name").val(); var where = $("#where").val(); var when = $("#when").val(); var why = $("#why").val(); var furnish = $("#furnish").val(); var errMsg = ""; if(title == "" || title == null){ errMsg += "
Title cann't be blank."; } if(name == "" || name == null){ errMsg += "
Name cann't be blank."; } if(where == "" || where == null){ errMsg += "
Where cann't be blank."; } if(when == "" || when == null){ errMsg += "
When cann't be blank."; } if(why == "" || why == null){ errMsg += "
Why cann't be blank."; } if(furnish == "" || furnish == null){ errMsg += "
Furnish cann't be blank."; } if(errMsg == ""){ return true; } toastr.error(errMsg, "Application", { "timeOut": "3000", "extendedTImeout": "0", "positionClass": "toast-bottom-center", }); return false; }