Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:52:58-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13364 2011-12-20T09:52:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=58133#p58133 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: December 20, 2011, 9:53 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:52 am


]]>
2011-12-07T01:06:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=55815#p55815 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: December 7, 2011, 1:06 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:06 am


]]>
2011-11-05T19:28:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=52187#p52187 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: November 5, 2011, 8:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:28 pm


]]>
2011-10-29T20:38:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=50283#p50283 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: October 29, 2011, 9:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:38 pm


]]>
2011-10-17T15:43:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=48079#p48079 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: October 17, 2011, 1:43 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:43 pm


]]>
2011-10-11T14:38:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=46480#p46480 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: October 11, 2011, 12:39 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:38 pm


]]>
2011-10-03T15:51:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=44608#p44608 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: October 3, 2011, 1:51 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:51 pm


]]>
2011-10-03T03:45:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=43315#p43315 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: October 3, 2011, 1:45 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:45 am


]]>
2011-09-27T05:29:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=41557#p41557 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: September 27, 2011, 3:29 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:29 am


]]>
2011-09-26T21:06:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=40313#p40313 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: September 26, 2011, 7:06 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:06 pm


]]>
2011-09-17T17:05:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=38457#p38457 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: September 17, 2011, 3:05 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 5:05 pm


]]>
2011-09-14T01:30:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=37035#p37035 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: September 13, 2011, 11:30 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:30 am


]]>
2011-09-13T12:05:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=35763#p35763 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: September 13, 2011, 10:05 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:05 pm


]]>
2011-08-15T15:19:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=31871#p31871 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: August 15, 2011, 4:19 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member-pro\includes\separates\gateways\authnet\authnet-min.js jQuery(document).ready(function(w){var d,n,g,j,m,F,u,t={"aria-required":"true"},a={"aria-required":"false"},x={disabled:"disabled"},f={"aria-required":"false",disabled:"disabled"};u=new Image(),u.src='?php echo $vars [ "i" ] ; ?/ajax-loader.gif';if((d=w("form#s2member-pro-authnet-cancellation-form")).length===1){var I="div#s2member-pro-authnet-cancellation-form-captcha-section",k="div#s2member-pro-authnet-cancellation-form-submission-section",s=w(k+" input#s2member-pro-authnet-cancellation-submit");ws_plugin__s2member_animateProcessing(s,"reset"),s.removeAttr("disabled");d.submit(function(){var O=this,M="",L="",P="";var N=w(I+" input#recaptcha_response_field");w(":input",O).each(function(){var Q=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(Q&&(M=w.trim(w('label[for="'+Q+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){P+=L+"\n\n"}}});if(P=w.trim(P)){alert("— Oops, you missed something: —\n\n"+P);return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}s.attr(x),ws_plugin__s2member_animateProcessing(s);return true})}else{if((n=w("form#s2member-pro-authnet-update-form")).length===1){var q,r="div#s2member-pro-authnet-update-form-billing-method-section",C="div#s2member-pro-authnet-update-form-billing-address-section",i=r+' input[name="s2member_pro_authnet_update[card_type]"]',I="div#s2member-pro-authnet-update-form-captcha-section",k="div#s2member-pro-authnet-update-form-submission-section",s=w(k+" input#s2member-pro-authnet-update-submit");ws_plugin__s2member_animateProcessing(s,"reset"),s.removeAttr("disabled");(q=function(L){var M=w(i+":checked").val();if(w.inArray(M,["Visa","MasterCard","Amex","Discover"])!==-1){w(r+" div.s2member-pro-authnet-update-form-div").show();w(r+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(r+" div#s2member-pro-authnet-update-form-card-start-date-issue-number-div").hide();w(r+" div#s2member-pro-authnet-update-form-card-start-date-issue-number-div :input").attr(a);w(C+" div.s2member-pro-authnet-update-form-div").show();w(C+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(C).show(),(L)?w(r+" input#s2member-pro-authnet-update-card-number").focus():null}else{if(w.inArray(M,["Maestro","Solo"])!==-1){w(r+" div.s2member-pro-authnet-update-form-div").show();w(r+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(C+" div.s2member-pro-authnet-update-form-div").show();w(C+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(C).show(),(L)?w(r+" input#s2member-pro-authnet-update-card-number").focus():null}else{if(!M){w(r+" div.s2member-pro-authnet-update-form-div").hide();w(r+" div.s2member-pro-authnet-update-form-div :input").attr(a);w(r+" div#s2member-pro-authnet-update-form-card-type-div").show();w(r+" div#s2member-pro-authnet-update-form-card-type-div :input").attr(t);w(C+" div.s2member-pro-authnet-update-form-div").hide();w(C+" div.s2member-pro-authnet-update-form-div :input").attr(a);w(C).hide(),(L)?w(k+" input#s2member-pro-authnet-update-submit").focus():null}}}})();w(i).click(q).change(q);n.submit(function(){var O=this,M="",L="",P="";var N=w(I+" input#recaptcha_response_field");if(!w(i+":checked").val()){alert("Please choose a Billing Method.");return false}w(":input",O).each(function(){var Q=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(Q&&(M=w.trim(w('label[for="'+Q+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){P+=L+"\n\n"}}});if(P=w.trim(P)){alert("— Oops, you missed something: —\n\n"+P);return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}s.attr(x),ws_plugin__s2member_animateProcessing(s);return true})}else{if((g=w("form#s2member-pro-authnet-registration-form")).length===1){var G,o,H="div#s2member-pro-authnet-registration-form-registration-section",I="div#s2member-pro-authnet-registration-form-captcha-section",k="div#s2member-pro-authnet-registration-form-submission-section",s=w(k+" input#s2member-pro-authnet-registration-submit");ws_plugin__s2member_animateProcessing(s,"reset"),s.removeAttr("disabled");(G=function(L){if(w(k+" input#s2member-pro-authnet-registration-names-not-required-or-not-possible").length){w(H+" div#s2member-pro-authnet-registration-form-first-name-div").hide();w(H+" div#s2member-pro-authnet-registration-form-first-name-div :input").attr(f);w(H+" div#s2member-pro-authnet-registration-form-last-name-div").hide();w(H+" div#s2member-pro-authnet-registration-form-last-name-div :input").attr(f)}})();(o=function(L){if(w(k+" input#s2member-pro-authnet-registration-password-not-required-or-not-possible").length){w(H+" div#s2member-pro-authnet-registration-form-password-div").hide();w(H+" div#s2member-pro-authnet-registration-form-password-div :input").attr(f)}})();w(H+" div#s2member-pro-authnet-registration-form-password-div :input").keyup(function(){ws_plugin__s2member_passwordStrength(w(H+" input#s2member-pro-authnet-registration-username"),w(H+" input#s2member-pro-authnet-registration-password1"),w(H+" input#s2member-pro-authnet-registration-password2"),w(H+" div#s2member-pro-authnet-registration-form-password-strength"))});g.submit(function(){var O=this,M="",L="",R="";var N=w(I+" input#recaptcha_response_field");var Q=w(H+' input#s2member-pro-authnet-registration-password1[aria-required="true"]');var P=w(H+" input#s2member-pro-authnet-registration-password2");w(":input",O).each(function(){var S=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(S&&(M=w.trim(w('label[for="'+S+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){R+=L+"\n\n"}}});if(R=w.trim(R)){alert("— Oops, you missed something: —\n\n"+R);return false}else{if(Q.length&&w.trim(Q.val())!==w.trim(P.val())){alert("— Oops, you missed something: —\n\nPasswords do not match up. Please try again.");return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}}s.attr(x),ws_plugin__s2member_animateProcessing(s);return true})}else{if((j=w("form#s2member-pro-authnet-sp-checkout-form")).length===1){var A,E,p=true,D,l,e,y,b,z,q,B="div#s2member-pro-authnet-sp-checkout-form-coupon-section",J=B+" input#s2member-pro-authnet-sp-checkout-coupon-apply",H="div#s2member-pro-authnet-sp-checkout-form-registration-section",r="div#s2member-pro-authnet-sp-checkout-form-billing-method-section",i=r+' input[name="s2member_pro_authnet_sp_checkout[card_type]"]',C="div#s2member-pro-authnet-sp-checkout-form-billing-address-section",v=w(C+" div#s2member-pro-authnet-sp-checkout-form-ajax-tax-div"),I="div#s2member-pro-authnet-sp-checkout-form-captcha-section",k="div#s2member-pro-authnet-sp-checkout-form-submission-section",h=k+" input#s2member-pro-authnet-sp-checkout-nonce",c=k+" input#s2member-pro-authnet-sp-checkout-submit";ws_plugin__s2member_animateProcessing(w(c),"reset"),w(c).removeAttr("disabled"),w(J).removeAttr("disabled");(A=function(L){if(w(k+" input#s2member-pro-authnet-sp-checkout-coupons-not-required-or-not-possible").length){w(B).hide()}else{w(B).show()}})();(E=function(L){if(w(k+" input#s2member-pro-authnet-sp-checkout-tax-not-required-or-not-possible").length){v.hide(),p=false}})();(D=function(M){if(p&&!(M&&M.interval&&document.activeElement.id==="s2member-pro-authnet-sp-checkout-country")){var L=w(k+" input#s2member-pro-authnet-sp-checkout-attr").val();var P=w.trim(w(C+" input#s2member-pro-authnet-sp-checkout-state").val());var Q=w(C+" select#s2member-pro-authnet-sp-checkout-country").val();var O=w.trim(w(C+" input#s2member-pro-authnet-sp-checkout-zip").val());var N=P+"|"+Q+"|"+O;if(P&&Q&&O&&N&&(!b||b!==N)&&(b=N)){(y)?y.abort():null,clearTimeout(e),e=null;v.html('divimg src="?php echo $vars [ "i" ] ; ?/ajax-loader.gif" alt="Calculating Sales Tax..." / calculating sales tax.../div');e=setTimeout(function(){y=w.post('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( admin_url ( "/admin-ajax.php" ) ) ; ?',{action:"ws_plugin__s2member_pro_authnet_ajax_tax",ws_plugin__s2member_pro_authnet_ajax_tax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq (c_ws_plugin__s2member_utils_encryption:: encrypt ( "ws-plugin--s2member-pro-authnet-ajax-tax" ) ) ; ?',"ws_plugin__s2member_pro_authnet_ajax_tax_vars[attr]":L,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[state]":P,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[country]":Q,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[zip]":O},function(R){clearTimeout(e),e=null;try{v.html("divstrongSales Tax"+((R.trial)?" Today":"")+":/strong "+((R.tax_per)?"em"+R.tax_per+"/em ( "+R.cur_symbol+""+R.tax+" )":R.cur_symbol+""+R.tax)+"br /strong— Total"+((R.trial)?" Today":"")+":/strong "+R.cur_symbol+""+R.total+"/div")}catch(S){}},"json")},((M&&M.keyCode)?1000:100))}else{if(!P||!Q||!O||!N){v.html(""),b=null}}}})();l=function(L){setTimeout(function(){D(L)},10)};w(C+" input#s2member-pro-authnet-sp-checkout-state").bind("keyup blur",D).bind("cut paste",l);w(C+" input#s2member-pro-authnet-sp-checkout-zip").bind("keyup blur",D).bind("cut paste",l);w(C+" select#s2member-pro-authnet-sp-checkout-country").bind("change",D);setInterval(function(){D({interval:true})},1000);(z=function(L){if(S2MEMBER_CURRENT_USER_IS_LOGGED_IN){w(H+" input#s2member-pro-authnet-sp-checkout-first-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_FIRST_NAME):null});w(H+" input#s2member-pro-authnet-sp-checkout-last-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_LAST_NAME):null});w(H+" input#s2member-pro-authnet-sp-checkout-email").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_EMAIL):null})}})();(q=function(L){var M=w(i+":checked").val();if(w.inArray(M,["Visa","MasterCard","Amex","Discover"])!==-1){w(r+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(r+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);w(r+" div#s2member-pro-authnet-sp-checkout-form-card-start-date-issue-number-div").hide();w(r+" div#s2member-pro-authnet-sp-checkout-form-card-start-date-issue-number-div :input").attr(a);w(C+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(C+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-sp-checkout-card-number").focus():null}else{if(w.inArray(M,["Maestro","Solo"])!==-1){w(r+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(r+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);w(C+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(C+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-sp-checkout-card-number").focus():null}else{if(!M){w(r+" div.s2member-pro-authnet-sp-checkout-form-div").hide();w(r+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(a);w(r+" div#s2member-pro-authnet-sp-checkout-form-card-type-div").show();w(r+" div#s2member-pro-authnet-sp-checkout-form-card-type-div :input").attr(t);w(C+" div.s2member-pro-authnet-sp-checkout-form-div").hide();w(C+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(a);(!p)?v.hide():null;w(C).hide(),(L)?w(k+" input#s2member-pro-authnet-sp-checkout-submit").focus():null}}}E()})();w(i).click(q).change(q);w(J).click(function(){w(h).val("apply-coupon"),j.submit()});j.submit(function(){if(w(h).val()!=="apply-coupon"){var O=this,M="",L="",P="";var N=w(I+" input#recaptcha_response_field");if(!w(i+":checked").val()){alert("Please choose a Billing Method.");return false}w(":input",O).each(function(){var Q=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(Q&&(M=w.trim(w('label[for="'+Q+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){P+=L+"\n\n"}}});if(P=w.trim(P)){alert("— Oops, you missed something: —\n\n"+P);return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}}w(c).attr(x),ws_plugin__s2member_animateProcessing(w(c)),w(J).attr(x);return true})}else{if((m=w("form#s2member-pro-authnet-checkout-form")).length===1){var A,E,p=true,D,l,e,y,b,o,q,z,B="div#s2member-pro-authnet-checkout-form-coupon-section",J=B+" input#s2member-pro-authnet-checkout-coupon-apply",H="div#s2member-pro-authnet-checkout-form-registration-section",K="div#s2member-pro-authnet-checkout-form-custom-fields-section",r="div#s2member-pro-authnet-checkout-form-billing-method-section",i=r+' input[name="s2member_pro_authnet_checkout[card_type]"]',C="div#s2member-pro-authnet-checkout-form-billing-address-section",v=w(C+" div#s2member-pro-authnet-checkout-form-ajax-tax-div"),I="div#s2member-pro-authnet-checkout-form-captcha-section",k="div#s2member-pro-authnet-checkout-form-submission-section",h=k+" input#s2member-pro-authnet-checkout-nonce",c=k+" input#s2member-pro-authnet-checkout-submit";ws_plugin__s2member_animateProcessing(w(c),"reset"),w(c).removeAttr("disabled"),w(J).removeAttr("disabled");(A=function(L){if(w(k+" input#s2member-pro-authnet-checkout-coupons-not-required-or-not-possible").length){w(B).hide()}else{w(B).show()}})();(E=function(L){if(w(k+" input#s2member-pro-authnet-checkout-tax-not-required-or-not-possible").length){v.hide(),p=false}})();(D=function(M){if(p&&!(M&&M.interval&&document.activeElement.id==="s2member-pro-authnet-checkout-country")){var L=w(k+" input#s2member-pro-authnet-checkout-attr").val();var P=w.trim(w(C+" input#s2member-pro-authnet-checkout-state").val());var Q=w(C+" select#s2member-pro-authnet-checkout-country").val();var O=w.trim(w(C+" input#s2member-pro-authnet-checkout-zip").val());var N=P+"|"+Q+"|"+O;if(P&&Q&&O&&N&&(!b||b!==N)&&(b=N)){(y)?y.abort():null,clearTimeout(e),e=null;v.html('divimg src="?php echo $vars [ "i" ] ; ?/ajax-loader.gif" alt="Calculating Sales Tax..." / calculating sales tax.../div');e=setTimeout(function(){y=w.post('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( admin_url ( "/admin-ajax.php" ) ) ; ?',{action:"ws_plugin__s2member_pro_authnet_ajax_tax",ws_plugin__s2member_pro_authnet_ajax_tax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq (c_ws_plugin__s2member_utils_encryption:: encrypt ( "ws-plugin--s2member-pro-authnet-ajax-tax" ) ) ; ?',"ws_plugin__s2member_pro_authnet_ajax_tax_vars[attr]":L,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[state]":P,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[country]":Q,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[zip]":O},function(R,T){clearTimeout(e),e=null;try{v.html("divstrongSales Tax"+((R.trial)?" Today":"")+":/strong "+((R.tax_per)?"em"+R.tax_per+"/em ( "+R.cur_symbol+""+R.tax+" )":R.cur_symbol+""+R.tax)+"br /strong— Total"+((R.trial)?" Today":"")+":/strong "+R.cur_symbol+""+R.total+"/div")}catch(S){}},"json")},((M&&M.keyCode)?1000:100))}else{if(!P||!Q||!O||!N){v.html(""),b=null}}}})();l=function(L){setTimeout(function(){D(L)},10)};w(C+" input#s2member-pro-authnet-checkout-state").bind("keyup blur",D).bind("cut paste",l);w(C+" input#s2member-pro-authnet-checkout-zip").bind("keyup blur",D).bind("cut paste",l);w(C+" select#s2member-pro-authnet-checkout-country").bind("change",D);setInterval(function(){D({interval:true})},1000);(o=function(L){if(w(k+" input#s2member-pro-authnet-checkout-password-not-required-or-not-possible").length){w(H+" div#s2member-pro-authnet-checkout-form-password-div").hide();w(H+" div#s2member-pro-authnet-checkout-form-password-div :input").attr(f)}})();(z=function(L){if(S2MEMBER_CURRENT_USER_IS_LOGGED_IN){w(H+" input#s2member-pro-authnet-checkout-first-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_FIRST_NAME):null});w(H+" input#s2member-pro-authnet-checkout-last-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_LAST_NAME):null});w(H+" input#s2member-pro-authnet-checkout-email").val(S2MEMBER_CURRENT_USER_EMAIL).attr(f);w(H+" input#s2member-pro-authnet-checkout-username").val(S2MEMBER_CURRENT_USER_LOGIN).attr(f);w(H+" div#s2member-pro-authnet-checkout-form-password-div").hide();w(H+" div#s2member-pro-authnet-checkout-form-password-div :input").attr(f);if(w.trim(w(H+" div#s2member-pro-authnet-checkout-form-registration-section-title").html())==="Create Profile"){w(H+" div#s2member-pro-authnet-checkout-form-registration-section-title").html("Your Profile")}w(K).hide(),w(K+" :input").attr(f)}})();(q=function(L){var M=w(i+":checked").val();if(w.inArray(M,["Visa","MasterCard","Amex","Discover"])!==-1){w(r+" div.s2member-pro-authnet-checkout-form-div").show();w(r+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);w(r+" div#s2member-pro-authnet-checkout-form-card-start-date-issue-number-div").hide();w(r+" div#s2member-pro-authnet-checkout-form-card-start-date-issue-number-div :input").attr(a);w(C+" div.s2member-pro-authnet-checkout-form-div").show();w(C+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-checkout-card-number").focus():null}else{if(w.inArray(M,["Maestro","Solo"])!==-1){w(r+" div.s2member-pro-authnet-checkout-form-div").show();w(r+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);w(C+" div.s2member-pro-authnet-checkout-form-div").show();w(C+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-checkout-card-number").focus():null}else{if(!M){w(r+" div.s2member-pro-authnet-checkout-form-div").hide();w(r+" div.s2member-pro-authnet-checkout-form-div :input").attr(a);w(r+" div#s2member-pro-authnet-checkout-form-card-type-div").show();w(r+" div#s2member-pro-authnet-checkout-form-card-type-div :input").attr(t);w(C+" div.s2member-pro-authnet-checkout-form-div").hide();w(C+" div.s2member-pro-authnet-checkout-form-div :input").attr(a);(!p)?v.hide():null;w(C).hide(),(L)?w(k+" input#s2member-pro-authnet-checkout-submit").focus():null}}}})();w(i).click(q).change(q);w(J).click(function(){w(h).val("apply-coupon"),m.submit()});w(H+" div#s2member-pro-authnet-checkout-form-password-div :input").keyup(function(){ws_plugin__s2member_passwordStrength(w(H+" input#s2member-pro-authnet-checkout-username"),w(H+" input#s2member-pro-authnet-checkout-password1"),w(H+" input#s2member-pro-authnet-checkout-password2"),w(H+" div#s2member-pro-authnet-checkout-form-password-strength"))});m.submit(function(){if(w(h).val()!=="apply-coupon"){var O=this,M="",L="",R="";var N=w(I+" input#recaptcha_response_field");var Q=w(H+' input#s2member-pro-authnet-checkout-password1[aria-required="true"]');var P=w(H+" input#s2member-pro-authnet-checkout-password2");if(!w(i+":checked").val()){alert("Please choose a Billing Method.");return false}w(":input",O).each(function(){var S=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(S&&(M=w.trim(w('label[for="'+S+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){R+=L+"\n\n"}}});if(R=w.trim(R)){alert("— Oops, you missed something: —\n\n"+R);return false}else{if(Q.length&&w.trim(Q.val())!==w.trim(P.val())){alert("— Oops, you missed something: —\n\nPasswords do not match up. Please try again.");return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}}}w(c).attr(x),ws_plugin__s2member_animateProcessing(w(c)),w(J).attr(x);return true})}}}}}(F=function(){w("div#s2member-pro-authnet-form-response").each(function(){var L=w(this).offset();window.scrollTo(0,L.top-100)})})()}); [ full view ]s2member-pro\includes\separates\gateways\authnet\authnet-min.js Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:19 pm


]]>
2011-07-11T17:38:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=28030#p28030 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: July 11, 2011, 6:38 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member-pro\includes\separates\gateways\authnet\authnet-min.js jQuery(document).ready(function(w){var d,n,g,j,m,F,u,t={"aria-required":"true"},a={"aria-required":"false"},x={disabled:"disabled"},f={"aria-required":"false",disabled:"disabled"};u=new Image(),u.src='?php echo $vars [ "i" ] ; ?/ajax-loader.gif';if((d=w("form#s2member-pro-authnet-cancellation-form")).length===1){var I="div#s2member-pro-authnet-cancellation-form-captcha-section",k="div#s2member-pro-authnet-cancellation-form-submission-section",s=w(k+" input#s2member-pro-authnet-cancellation-submit");ws_plugin__s2member_animateProcessing(s,"reset"),s.removeAttr("disabled");d.submit(function(){var O=this,M="",L="",P="";var N=w(I+" input#recaptcha_response_field");w(":input",O).each(function(){var Q=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(Q&&(M=w.trim(w('label[for="'+Q+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){P+=L+"\n\n"}}});if(P=w.trim(P)){alert("— Oops, you missed something: —\n\n"+P);return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}s.attr(x),ws_plugin__s2member_animateProcessing(s);return true})}else{if((n=w("form#s2member-pro-authnet-update-form")).length===1){var q,r="div#s2member-pro-authnet-update-form-billing-method-section",C="div#s2member-pro-authnet-update-form-billing-address-section",i=r+' input[name="s2member_pro_authnet_update[card_type]"]',I="div#s2member-pro-authnet-update-form-captcha-section",k="div#s2member-pro-authnet-update-form-submission-section",s=w(k+" input#s2member-pro-authnet-update-submit");ws_plugin__s2member_animateProcessing(s,"reset"),s.removeAttr("disabled");(q=function(L){var M=w(i+":checked").val();if(w.inArray(M,["Visa","MasterCard","Amex","Discover"])!==-1){w(r+" div.s2member-pro-authnet-update-form-div").show();w(r+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(r+" div#s2member-pro-authnet-update-form-card-start-date-issue-number-div").hide();w(r+" div#s2member-pro-authnet-update-form-card-start-date-issue-number-div :input").attr(a);w(C+" div.s2member-pro-authnet-update-form-div").show();w(C+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(C).show(),(L)?w(r+" input#s2member-pro-authnet-update-card-number").focus():null}else{if(w.inArray(M,["Maestro","Solo"])!==-1){w(r+" div.s2member-pro-authnet-update-form-div").show();w(r+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(C+" div.s2member-pro-authnet-update-form-div").show();w(C+" div.s2member-pro-authnet-update-form-div :input").attr(t);w(C).show(),(L)?w(r+" input#s2member-pro-authnet-update-card-number").focus():null}else{if(!M){w(r+" div.s2member-pro-authnet-update-form-div").hide();w(r+" div.s2member-pro-authnet-update-form-div :input").attr(a);w(r+" div#s2member-pro-authnet-update-form-card-type-div").show();w(r+" div#s2member-pro-authnet-update-form-card-type-div :input").attr(t);w(C+" div.s2member-pro-authnet-update-form-div").hide();w(C+" div.s2member-pro-authnet-update-form-div :input").attr(a);w(C).hide(),(L)?w(k+" input#s2member-pro-authnet-update-submit").focus():null}}}})();w(i).click(q).change(q);n.submit(function(){var O=this,M="",L="",P="";var N=w(I+" input#recaptcha_response_field");if(!w(i+":checked").val()){alert("Please choose a Billing Method.");return false}w(":input",O).each(function(){var Q=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(Q&&(M=w.trim(w('label[for="'+Q+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){P+=L+"\n\n"}}});if(P=w.trim(P)){alert("— Oops, you missed something: —\n\n"+P);return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}s.attr(x),ws_plugin__s2member_animateProcessing(s);return true})}else{if((g=w("form#s2member-pro-authnet-registration-form")).length===1){var G,o,H="div#s2member-pro-authnet-registration-form-registration-section",I="div#s2member-pro-authnet-registration-form-captcha-section",k="div#s2member-pro-authnet-registration-form-submission-section",s=w(k+" input#s2member-pro-authnet-registration-submit");ws_plugin__s2member_animateProcessing(s,"reset"),s.removeAttr("disabled");(G=function(L){if(w(k+" input#s2member-pro-authnet-registration-names-not-required-or-not-possible").length){w(H+" div#s2member-pro-authnet-registration-form-first-name-div").hide();w(H+" div#s2member-pro-authnet-registration-form-first-name-div :input").attr(f);w(H+" div#s2member-pro-authnet-registration-form-last-name-div").hide();w(H+" div#s2member-pro-authnet-registration-form-last-name-div :input").attr(f)}})();(o=function(L){if(w(k+" input#s2member-pro-authnet-registration-password-not-required-or-not-possible").length){w(H+" div#s2member-pro-authnet-registration-form-password-div").hide();w(H+" div#s2member-pro-authnet-registration-form-password-div :input").attr(f)}})();w(H+" div#s2member-pro-authnet-registration-form-password-div :input").keyup(function(){ws_plugin__s2member_passwordStrength(w(H+" input#s2member-pro-authnet-registration-username"),w(H+" input#s2member-pro-authnet-registration-password1"),w(H+" input#s2member-pro-authnet-registration-password2"),w(H+" div#s2member-pro-authnet-registration-form-password-strength"))});g.submit(function(){var O=this,M="",L="",R="";var N=w(I+" input#recaptcha_response_field");var Q=w(H+' input#s2member-pro-authnet-registration-password1[aria-required="true"]');var P=w(H+" input#s2member-pro-authnet-registration-password2");w(":input",O).each(function(){var S=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(S&&(M=w.trim(w('label[for="'+S+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){R+=L+"\n\n"}}});if(R=w.trim(R)){alert("— Oops, you missed something: —\n\n"+R);return false}else{if(Q.length&&w.trim(Q.val())!==w.trim(P.val())){alert("— Oops, you missed something: —\n\nPasswords do not match up. Please try again.");return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}}s.attr(x),ws_plugin__s2member_animateProcessing(s);return true})}else{if((j=w("form#s2member-pro-authnet-sp-checkout-form")).length===1){var A,E,p=true,D,l,e,y,b,z,q,B="div#s2member-pro-authnet-sp-checkout-form-coupon-section",J=B+" input#s2member-pro-authnet-sp-checkout-coupon-apply",H="div#s2member-pro-authnet-sp-checkout-form-registration-section",r="div#s2member-pro-authnet-sp-checkout-form-billing-method-section",i=r+' input[name="s2member_pro_authnet_sp_checkout[card_type]"]',C="div#s2member-pro-authnet-sp-checkout-form-billing-address-section",v=w(C+" div#s2member-pro-authnet-sp-checkout-form-ajax-tax-div"),I="div#s2member-pro-authnet-sp-checkout-form-captcha-section",k="div#s2member-pro-authnet-sp-checkout-form-submission-section",h=k+" input#s2member-pro-authnet-sp-checkout-nonce",c=k+" input#s2member-pro-authnet-sp-checkout-submit";ws_plugin__s2member_animateProcessing(w(c),"reset"),w(c).removeAttr("disabled"),w(J).removeAttr("disabled");(A=function(L){if(w(k+" input#s2member-pro-authnet-sp-checkout-coupons-not-required-or-not-possible").length){w(B).hide()}else{w(B).show()}})();(E=function(L){if(w(k+" input#s2member-pro-authnet-sp-checkout-tax-not-required-or-not-possible").length){v.hide(),p=false}})();(D=function(M){if(p&&!(M&&M.interval&&document.activeElement.id==="s2member-pro-authnet-sp-checkout-country")){var L=w(k+" input#s2member-pro-authnet-sp-checkout-attr").val();var P=w.trim(w(C+" input#s2member-pro-authnet-sp-checkout-state").val());var Q=w(C+" select#s2member-pro-authnet-sp-checkout-country").val();var O=w.trim(w(C+" input#s2member-pro-authnet-sp-checkout-zip").val());var N=P+"|"+Q+"|"+O;if(P&&Q&&O&&N&&(!b||b!==N)&&(b=N)){(y)?y.abort():null,clearTimeout(e),e=null;v.html('divimg src="?php echo $vars [ "i" ] ; ?/ajax-loader.gif" alt="Calculating Sales Tax..." / calculating sales tax.../div');e=setTimeout(function(){y=w.post('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( admin_url ( "/admin-ajax.php" ) ) ; ?',{action:"ws_plugin__s2member_pro_authnet_ajax_tax",ws_plugin__s2member_pro_authnet_ajax_tax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq (c_ws_plugin__s2member_utils_encryption:: encrypt ( "ws-plugin--s2member-pro-authnet-ajax-tax" ) ) ; ?',"ws_plugin__s2member_pro_authnet_ajax_tax_vars[attr]":L,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[state]":P,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[country]":Q,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[zip]":O},function(R){clearTimeout(e),e=null;try{v.html("divstrongSales Tax"+((R.trial)?" Today":"")+":/strong "+((R.tax_per)?"em"+R.tax_per+"/em ( "+R.cur_symbol+""+R.tax+" )":R.cur_symbol+""+R.tax)+"br /strong— Total"+((R.trial)?" Today":"")+":/strong "+R.cur_symbol+""+R.total+"/div")}catch(S){}},"json")},((M&&M.keyCode)?1000:100))}else{if(!P||!Q||!O||!N){v.html(""),b=null}}}})();l=function(L){setTimeout(function(){D(L)},10)};w(C+" input#s2member-pro-authnet-sp-checkout-state").bind("keyup blur",D).bind("cut paste",l);w(C+" input#s2member-pro-authnet-sp-checkout-zip").bind("keyup blur",D).bind("cut paste",l);w(C+" select#s2member-pro-authnet-sp-checkout-country").bind("change",D);setInterval(function(){D({interval:true})},1000);(z=function(L){if(S2MEMBER_CURRENT_USER_IS_LOGGED_IN){w(H+" input#s2member-pro-authnet-sp-checkout-first-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_FIRST_NAME):null});w(H+" input#s2member-pro-authnet-sp-checkout-last-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_LAST_NAME):null});w(H+" input#s2member-pro-authnet-sp-checkout-email").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_EMAIL):null})}})();(q=function(L){var M=w(i+":checked").val();if(w.inArray(M,["Visa","MasterCard","Amex","Discover"])!==-1){w(r+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(r+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);w(r+" div#s2member-pro-authnet-sp-checkout-form-card-start-date-issue-number-div").hide();w(r+" div#s2member-pro-authnet-sp-checkout-form-card-start-date-issue-number-div :input").attr(a);w(C+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(C+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-sp-checkout-card-number").focus():null}else{if(w.inArray(M,["Maestro","Solo"])!==-1){w(r+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(r+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);w(C+" div.s2member-pro-authnet-sp-checkout-form-div").show();w(C+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-sp-checkout-card-number").focus():null}else{if(!M){w(r+" div.s2member-pro-authnet-sp-checkout-form-div").hide();w(r+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(a);w(r+" div#s2member-pro-authnet-sp-checkout-form-card-type-div").show();w(r+" div#s2member-pro-authnet-sp-checkout-form-card-type-div :input").attr(t);w(C+" div.s2member-pro-authnet-sp-checkout-form-div").hide();w(C+" div.s2member-pro-authnet-sp-checkout-form-div :input").attr(a);(!p)?v.hide():null;w(C).hide(),(L)?w(k+" input#s2member-pro-authnet-sp-checkout-submit").focus():null}}}E()})();w(i).click(q).change(q);w(J).click(function(){w(h).val("apply-coupon"),j.submit()});j.submit(function(){if(w(h).val()!=="apply-coupon"){var O=this,M="",L="",P="";var N=w(I+" input#recaptcha_response_field");if(!w(i+":checked").val()){alert("Please choose a Billing Method.");return false}w(":input",O).each(function(){var Q=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(Q&&(M=w.trim(w('label[for="'+Q+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){P+=L+"\n\n"}}});if(P=w.trim(P)){alert("— Oops, you missed something: —\n\n"+P);return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}}w(c).attr(x),ws_plugin__s2member_animateProcessing(w(c)),w(J).attr(x);return true})}else{if((m=w("form#s2member-pro-authnet-checkout-form")).length===1){var A,E,p=true,D,l,e,y,b,o,q,z,B="div#s2member-pro-authnet-checkout-form-coupon-section",J=B+" input#s2member-pro-authnet-checkout-coupon-apply",H="div#s2member-pro-authnet-checkout-form-registration-section",K="div#s2member-pro-authnet-checkout-form-custom-fields-section",r="div#s2member-pro-authnet-checkout-form-billing-method-section",i=r+' input[name="s2member_pro_authnet_checkout[card_type]"]',C="div#s2member-pro-authnet-checkout-form-billing-address-section",v=w(C+" div#s2member-pro-authnet-checkout-form-ajax-tax-div"),I="div#s2member-pro-authnet-checkout-form-captcha-section",k="div#s2member-pro-authnet-checkout-form-submission-section",h=k+" input#s2member-pro-authnet-checkout-nonce",c=k+" input#s2member-pro-authnet-checkout-submit";ws_plugin__s2member_animateProcessing(w(c),"reset"),w(c).removeAttr("disabled"),w(J).removeAttr("disabled");(A=function(L){if(w(k+" input#s2member-pro-authnet-checkout-coupons-not-required-or-not-possible").length){w(B).hide()}else{w(B).show()}})();(E=function(L){if(w(k+" input#s2member-pro-authnet-checkout-tax-not-required-or-not-possible").length){v.hide(),p=false}})();(D=function(M){if(p&&!(M&&M.interval&&document.activeElement.id==="s2member-pro-authnet-checkout-country")){var L=w(k+" input#s2member-pro-authnet-checkout-attr").val();var P=w.trim(w(C+" input#s2member-pro-authnet-checkout-state").val());var Q=w(C+" select#s2member-pro-authnet-checkout-country").val();var O=w.trim(w(C+" input#s2member-pro-authnet-checkout-zip").val());var N=P+"|"+Q+"|"+O;if(P&&Q&&O&&N&&(!b||b!==N)&&(b=N)){(y)?y.abort():null,clearTimeout(e),e=null;v.html('divimg src="?php echo $vars [ "i" ] ; ?/ajax-loader.gif" alt="Calculating Sales Tax..." / calculating sales tax.../div');e=setTimeout(function(){y=w.post('?php echo c_ws_plugin__s2member_utils_strings:: esc_sq ( admin_url ( "/admin-ajax.php" ) ) ; ?',{action:"ws_plugin__s2member_pro_authnet_ajax_tax",ws_plugin__s2member_pro_authnet_ajax_tax:'?php echo c_ws_plugin__s2member_utils_strings:: esc_sq (c_ws_plugin__s2member_utils_encryption:: encrypt ( "ws-plugin--s2member-pro-authnet-ajax-tax" ) ) ; ?',"ws_plugin__s2member_pro_authnet_ajax_tax_vars[attr]":L,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[state]":P,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[country]":Q,"ws_plugin__s2member_pro_authnet_ajax_tax_vars[zip]":O},function(R,T){clearTimeout(e),e=null;try{v.html("divstrongSales Tax"+((R.trial)?" Today":"")+":/strong "+((R.tax_per)?"em"+R.tax_per+"/em ( "+R.cur_symbol+""+R.tax+" )":R.cur_symbol+""+R.tax)+"br /strong— Total"+((R.trial)?" Today":"")+":/strong "+R.cur_symbol+""+R.total+"/div")}catch(S){}},"json")},((M&&M.keyCode)?1000:100))}else{if(!P||!Q||!O||!N){v.html(""),b=null}}}})();l=function(L){setTimeout(function(){D(L)},10)};w(C+" input#s2member-pro-authnet-checkout-state").bind("keyup blur",D).bind("cut paste",l);w(C+" input#s2member-pro-authnet-checkout-zip").bind("keyup blur",D).bind("cut paste",l);w(C+" select#s2member-pro-authnet-checkout-country").bind("change",D);setInterval(function(){D({interval:true})},1000);(o=function(L){if(w(k+" input#s2member-pro-authnet-checkout-password-not-required-or-not-possible").length){w(H+" div#s2member-pro-authnet-checkout-form-password-div").hide();w(H+" div#s2member-pro-authnet-checkout-form-password-div :input").attr(f)}})();(z=function(L){if(S2MEMBER_CURRENT_USER_IS_LOGGED_IN){w(H+" input#s2member-pro-authnet-checkout-first-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_FIRST_NAME):null});w(H+" input#s2member-pro-authnet-checkout-last-name").each(function(){var M=w(this),N=M.val();(!N)?M.val(S2MEMBER_CURRENT_USER_LAST_NAME):null});w(H+" input#s2member-pro-authnet-checkout-email").val(S2MEMBER_CURRENT_USER_EMAIL).attr(f);w(H+" input#s2member-pro-authnet-checkout-username").val(S2MEMBER_CURRENT_USER_LOGIN).attr(f);w(H+" div#s2member-pro-authnet-checkout-form-password-div").hide();w(H+" div#s2member-pro-authnet-checkout-form-password-div :input").attr(f);w(K).hide(),w(K+" :input").attr(f)}})();(q=function(L){var M=w(i+":checked").val();if(w.inArray(M,["Visa","MasterCard","Amex","Discover"])!==-1){w(r+" div.s2member-pro-authnet-checkout-form-div").show();w(r+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);w(r+" div#s2member-pro-authnet-checkout-form-card-start-date-issue-number-div").hide();w(r+" div#s2member-pro-authnet-checkout-form-card-start-date-issue-number-div :input").attr(a);w(C+" div.s2member-pro-authnet-checkout-form-div").show();w(C+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-checkout-card-number").focus():null}else{if(w.inArray(M,["Maestro","Solo"])!==-1){w(r+" div.s2member-pro-authnet-checkout-form-div").show();w(r+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);w(C+" div.s2member-pro-authnet-checkout-form-div").show();w(C+" div.s2member-pro-authnet-checkout-form-div :input").attr(t);(!p)?v.hide():null;w(C).show(),(L)?w(r+" input#s2member-pro-authnet-checkout-card-number").focus():null}else{if(!M){w(r+" div.s2member-pro-authnet-checkout-form-div").hide();w(r+" div.s2member-pro-authnet-checkout-form-div :input").attr(a);w(r+" div#s2member-pro-authnet-checkout-form-card-type-div").show();w(r+" div#s2member-pro-authnet-checkout-form-card-type-div :input").attr(t);w(C+" div.s2member-pro-authnet-checkout-form-div").hide();w(C+" div.s2member-pro-authnet-checkout-form-div :input").attr(a);(!p)?v.hide():null;w(C).hide(),(L)?w(k+" input#s2member-pro-authnet-checkout-submit").focus():null}}}})();w(i).click(q).change(q);w(J).click(function(){w(h).val("apply-coupon"),m.submit()});w(H+" div#s2member-pro-authnet-checkout-form-password-div :input").keyup(function(){ws_plugin__s2member_passwordStrength(w(H+" input#s2member-pro-authnet-checkout-username"),w(H+" input#s2member-pro-authnet-checkout-password1"),w(H+" input#s2member-pro-authnet-checkout-password2"),w(H+" div#s2member-pro-authnet-checkout-form-password-strength"))});m.submit(function(){if(w(h).val()!=="apply-coupon"){var O=this,M="",L="",R="";var N=w(I+" input#recaptcha_response_field");var Q=w(H+' input#s2member-pro-authnet-checkout-password1[aria-required="true"]');var P=w(H+" input#s2member-pro-authnet-checkout-password2");if(!w(i+":checked").val()){alert("Please choose a Billing Method.");return false}w(":input",O).each(function(){var S=w.trim(w(this).attr("id")).replace(/-[0-9]+$/g,"");if(S&&(M=w.trim(w('label[for="'+S+'"]',O).first().children("span").first().text().replace(/[\r\n\t]+/g," ")))){if(L=ws_plugin__s2member_validationErrors(M,this,O)){R+=L+"\n\n"}}});if(R=w.trim(R)){alert("— Oops, you missed something: —\n\n"+R);return false}else{if(Q.length&&w.trim(Q.val())!==w.trim(P.val())){alert("— Oops, you missed something: —\n\nPasswords do not match up. Please try again.");return false}else{if(N.length&&!N.val()){alert("— Oops, you missed something: —\n\nSecurity Code missing. Please try again.");return false}}}}w(c).attr(x),ws_plugin__s2member_animateProcessing(w(c)),w(J).attr(x);return true})}}}}}(F=function(){w("div#s2member-pro-authnet-form-response").each(function(){var L=w(this).offset();window.scrollTo(0,L.top-100)})})()}); [ full view ]s2member-pro\includes\separates\gateways\authnet\authnet-min.js Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:38 pm


]]>
2011-07-09T06:19:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13364&p=25659#p25659 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\separates\gateways\authnet\authnet-min.js
Docs updated: December 20, 2011, 9:53 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:19 am


]]>