var rewriteBase="sit_svn_oxid_module_config_45";$.fn.initCreditpassCheck=function(){$(this).unbind("click");$(this).bind("click",function(){return startCreditpassCheck()})};function startCreditpassCheck(){$("#sit_creditpass_message").html("");var e=null;$("input[name='paymentid']:checked").each(function(){e=$(this).val()});if(e==null){return true}var g="";$("input[name='dynvalue[lsblz]']").each(function(){g=$("input[name='dynvalue[lsblz]']").val()});var f="";$("input[name='dynvalue[lsktonr]']").each(function(){f=$("input[name='dynvalue[lsktonr]']").val()});var d="";$("input[name='dynvalue[kknumber]']").each(function(){d=$("input[name='dynvalue[kknumber]']").val()});var c="";$("input[name='dynvalue[kktype]']").each(function(){c=$("input[name='dynvalue[kktype]']").val()});var b;var a={};a.request="sit_creditpass_check";a.paymentid=e;a.userid=userId;a.shopid=shopId;a.bankaccount=g;a.bankaccountnumber=f;a.creditcardtype=c;a.creditcardnumber=d;a.amount=basketAmount;$.ajax({type:"POST",async:false,url:location.protocol+"//"+document.location.hostname+"/"+rewriteBase+"/SITModuleFramework/modules/SITCreditpass/SITCreditpassConfigurator.php",data:a,dataType:"json",success:function(h){b=h}});if(b.success==1){return true}$("input[name='paymentid']").each(function(){if(b.securepayments.indexOf($(this).val())==-1){$(this).parent().hide()}else{$(this).attr("checked","checked")}});if(b.message){$("#sit_creditpass_message").html(b.message)}return false};