wpspf_vars is not defined
-
I have come across this error when loading the form:
Uncaught ReferenceError: wpspf_vars is not defined
wpspf-service-form.js: 19:9This is the code where it errors out:
//intial load, hide fields until a payment method selection is made (if check enabled).
if (wpspf_vars.wpspfnet_enable_check == 1){
jQuery(‘#authorizenet_lightweight-card-numberrow’).hide();
jQuery(‘#authorizenet_lightweight-card-expiryrow’).hide();
jQuery(‘#authorizenet_lightweight-card-cvcrow’).hide();
jQuery(‘#authorizenet_name-on-accountrow’).hide();
jQuery(‘#authorizenet_routing-numberrow’).hide();
jQuery(‘#authorizenet_account-numberrow’).hide();
jQuery(‘#authorizenet_bank-namerow’).hide();
jQuery(‘#check-imagerow’).hide();jQuery(‘#authorizenet_lightweight-card-number’).removeAttr(‘required’);
jQuery(‘#authorizenet_lightweight-card-expiry’).removeAttr(‘required’);
jQuery(‘#authorizenet_lightweight-card-cvc’).removeAttr(‘required’);
jQuery(‘#authorizenet_name-on-account’).removeAttr(‘required’);
jQuery(‘#authorizenet_routing-number’).removeAttr(‘required’);
jQuery(‘#authorizenet_account-number’).removeAttr(‘required’);
jQuery(‘#authorizenet_bank-name’).removeAttr(‘required’);
}
- The topic ‘wpspf_vars is not defined’ is closed to new replies.