• Resolved Jakson

    (@jaskon)


    Hey guys, got a weird one for you here,

    I’m working on a Multisite – the Stripe Payment Plugin for WooCommerce works great on the subdomain https://se.MY-WEBSITE.com but doesnt work on the https://MY-WEBSITE.com top level site

    We get this error below (and attached) on the Checkout page and the Stripe payment box doesnt show up

    Any ideas what this could be?

    Cheers,
    Jakson

    Error Message 1

    
    Uncaught (in promise) TypeError: document.getElementById(...) is null
        startPaymentRequest https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:167
        promise callback*startPaymentRequest https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:143
        success https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:20
        jQuery 7
        eh_generate_cart https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:15
        init https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:344
        <anonymous> https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:349
        jQuery 13
    eh-payment-request-button.js:167:22
    
    

    Message 2

    
    Uncaught (in promise) TypeError: document.getElementById(...) is null
        startPaymentRequest https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:167
        promise callback*startPaymentRequest https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:143
        success https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:20
        jQuery 7
        eh_generate_cart https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:15
        init https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:344
        <anonymous> https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:358
        jQuery 7
        success https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 7
        update_checkout_action https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        setTimeout handler*update_checkout https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 7
        init_checkout https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 7
        init https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        <anonymous> https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 13
    eh-payment-request-button.js:167:22
        startPaymentRequest https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:167
        (Async: promise callback)
        startPaymentRequest https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:143
        success https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:20
        jQuery 7
        eh_generate_cart https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:15
        init https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:344
        <anonymous> https://MY-WEBSITE.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/assets/js/eh-payment-request-button.js?ver=3.7.0:358
        jQuery 7
        success https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 7
        update_checkout_action https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        (Async: setTimeout handler)
        update_checkout https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 7
        init_checkout https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 7
        init https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        <anonymous> https://MY-WEBSITE.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=6.4.1:1
        jQuery 13
    
    • This topic was modified 2 years, 11 months ago by Yui.
    • This topic was modified 2 years, 11 months ago by Yui. Reason: formatting
    • This topic was modified 2 years, 11 months ago by Jakson.
Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @jaskon,

    Thank you for reaching out to us.

    Since you have already raised a support ticket for the same issue on Zendesk we will continue there.

Viewing 1 replies (of 1 total)
  • The topic ‘“Uncaught (in promise) TypeError”’ is closed to new replies.