Support » Plugin: Braintree For WooCommerce » Paypal Javascript error

  • Resolved vakondweb

    (@vakondweb)


    Hi,

    I have a Woocommerce website with onepage checkout,
    but the checkout completly dissapeared after the plugin update and the console shows me JS errors:

    paypal-checkout.js?ver=3.1.8:254 ppxo_unhandled_error Object
    print @ paypal-checkout.js?ver=3.1.8:254
    paypal-checkout.js?ver=3.1.8:5497 Uncaught Error: [paypal-button] Context type iframe requires an element selector
        at Component.validateRenderContext (paypal-checkout.js?ver=3.1.8:6552)
        at Component.getRenderContext (paypal-checkout.js?ver=3.1.8:6562)
        at paypal-checkout.js?ver=3.1.8:6568
        at Function.ZalgoPromise.try (paypal-checkout.js?ver=3.1.8:5660)
        at Component.render (paypal-checkout.js?ver=3.1.8:6567)
        at callOriginal (paypal-checkout.js?ver=3.1.8:16954)
        at paypal-checkout.js?ver=3.1.8:14387
        at Component.obj.<computed> [as render] (paypal-checkout.js?ver=3.1.8:16949)
        at PayPal.<anonymous> (wc-braintree.min.js?ver=3.1.8:1)
        at new Promise (<anonymous>)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author mr.clayton

    (@mrclayton)

    Hi @vakondweb,

    Are you combining the cart page and checkout page? If so I believe that’s the issue. The paypal-cart scripts is trying to attach itself to the cart element but it doesn’t exist.

    In the next release of the plugin I will be adding a check to ensure the HTML element exists before attempting to attach the PayPal button. That should resolve issues like this where theme’s use a combined checkout page.

    Kind Regards,

    • This reply was modified 9 months, 2 weeks ago by mr.clayton.
    • This reply was modified 9 months, 2 weeks ago by mr.clayton.
    • This reply was modified 9 months, 2 weeks ago by mr.clayton.
Viewing 1 replies (of 1 total)
  • The topic ‘Paypal Javascript error’ is closed to new replies.