• Resolved plavalle

    (@plavalle)


    I have come across this error when loading the form:

    Uncaught ReferenceError: wpspf_vars is not defined
    wpspf-service-form.js: 19:9

    This 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’);
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shiv Prakash Tiwari

    (@shivtiwari)

    @plavalle wpspf_vars is not defined issue fixed now. Please use updated version 2.2.7

    Thanks

    Thread Starter plavalle

    (@plavalle)

    I’ve upgraded to Version 2.2.7
    Still getting the error:
    Uncaught ReferenceError: wpspf_vars is not defined
    <anonymous> /wp-content/plugins/wp-service-payment-form-with-authorizenet/js/wpspf-service-form.js?ver=5.8.1:19
    jQuery 13
    wpspf-service-form.js:19:9

    • This reply was modified 3 years, 2 months ago by plavalle.
    Plugin Author Shiv Prakash Tiwari

    (@shivtiwari)

    Can you please give me your website url, because it is working well at my end.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wpspf_vars is not defined’ is closed to new replies.