Support » Plugin: Braintree For WooCommerce » Checkout page errors

  • Resolved naresh11381

    (@naresh11381)


    Hi,
    I am getting javascript console errors on the checkout page with latest versions of WP(5.5.1), WC(4.4.1) and this plugin (3.2.6). I have changed to 2020 theme to make sure it is not theme related and the same issue persists.

    It has to do with the paypal gateway that is a part of your plugin, when I add to cart and checkout with PayPal enabled I get these errors
    unhandled_error {err: "Error: Window closed↵ at https://www.paypal.com…&currency=AUD&vault=false&intent=capture:2:36xxx", timestamp: "1599207107526", referer: "dev.testdomain.com.au", uid: "0c0869981d_xxx", env: "production"}
    and

    js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2 Uncaught Error: Window closed
        at js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2
        at e.n.dispatch (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at e.n.then (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at xe (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2
        at e.n.dispatch (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at e.n.resolve (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at e.n.dispatch (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at e.n.resolve (js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2)
        at js?client-id=Acv6Sbk7cmcN0hWTOtczbnhnBNfYsl96vB44yEyypXthtC6NS9hs8KdRljCiUbWKSNfhacfiRja_3mHc&components=buttons,messages&currency=AUD&vault=false&intent=capture:2

    If I reload the cart page the console errors disappear. I’m not sure if these errors will stop a checkout, they do break other parts of my site though due to it being JS issues.

    Any ideas on how this error can be resolved?
    I have this running on a dev setup if that’s any help.

    Thanks
    Nik

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

    (@mrclayton)

    @naresh11381

    Those console errors aren’t anything to be worried about and not caused by the plugin but rather the new PayPal sdk.

    If your PayPal integration is working then this is not an issue.

    Kind regards,

    Thread Starter naresh11381

    (@naresh11381)

    It is an issue for me, these errors cause other parts of my sites js functions to completely break.

    Plugin Author mr.clayton

    (@mrclayton)

    Hi @naresh11381

    Those types of errors are being written to the console by PayPal, they are not fatal JavaScript errors that would impact other JS functionality.

    You are more than welcome to share your website URL along with an explanation of what functionality is breaking on your site. I suspect there is some other JavaScript error being triggered on your page that is the culprit.

    If you want to keep your website private please reach out to me using the help button which is located on all the settings pages of the plug-in.

    Kind regards

    • This reply was modified 9 months, 2 weeks ago by mr.clayton.
    Thread Starter naresh11381

    (@naresh11381)

    I’m not sure why but the issue I was having is resolved. That PayPal error is intermittent but not causing the same issue as before. (or as you mentioned above, had nothing to do with the issue). Thanks for reaching out so quickly.

    Plugin Author mr.clayton

    (@mrclayton)

    @naresh11381

    Thanks for providing an update and confirming your issue has been resolved.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Checkout page errors’ is closed to new replies.