$("document").ready(function(){$("#showAmount");var c=$("#cfidForm"),d=$(".carousel-fixed-item.center"),h=function(a){c.hide();d.hide();$("#pgloader").show();(a.actualAmount+"").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,");setTimeout(function(){location.href=a.paymentLink},600)},k=function(a,b){b.show();a.attr("disabled",!0)},e=function(a,b){var f=$(a).find("button"),g=$("#pgloader");c.hide();d.hide();k(f,g);var e=window.sitePrefix+"/ajax/cfidForm";b.push({name:"token",value:$("#token").val()});$.ajax({method:"post", url:e,data:b,success:function(a){a.status?h(a.txDetails):(showError(a.message),c.show(),d.show());g.hide();f.removeAttr("disabled")}})};$("#cfidForm").submit(function(){var a=$(this).serializeArray();e(this,a);return!1})});