We found out, that just one category of products cause this problem (events). If you have an event in the basket, then we find a lot of errors in console according to paypal and your plugin. Here an excerpt:
- paypal_js_sdk_v5_unhandled_exception Object { err: “Can not send postrobot_method. Target window is closed\ne/</</<@https://www.paypal.com/sdk/js?client-id=AYomj47YMNMl72OLCb4TElOURJt6pf5lOVGv4cKbmfvWH5MAkdkVWQdZdoDmXBTBA8s4wA0YT7al7_0P&intent=capture&vault=false&commit=true&components=buttons,messages¤cy=EUR&enable-funding=paylater&locale=de_DE:3:153070\ne/</<@https://www.paypal.com/sdk/js?client-(…)
- paypal_js_sdk_v5_unhandled_exception Object { err: “Can not send postrobot_method. Target window is closed\ne/</</<@https://www.paypal.com/sdk/js?client-id=AYomj47YMNMl72OLCb4TElOURJt6pf5lOVGv4cKbmfvWH5MAkdkVWQdZdoDmXBTBA8s4wA0YT7al7_0P&intent=capture&vault=false&commit=true&components=buttons,messages¤cy=EUR&enable-funding=paylater&locale=de_DE:3:153070\ne/</<@https://www.paypal.com/sdk/js?client-(…)
- Uncaught Error: Can not send postrobot_method. Target window is closed e js:
- Uncaught Error: Can not send postrobot_method. Target window is closed
- e js:3
- e js:3
- try js:3
- e js:3
- dispatch js:3
- then js:3
- r js:3
- value class-base-gateway.js:177
- value class-base-gateway.js:176
- value class-checkout-gateway.js:361
- value class-checkout-gateway.js:373
- onInit class-base-gateway.js:232
the events are connected to fooevents plugin
Hi @kaleu_87
Can you share a product page link to the event product?
The notice paypal_js_sdk_v5_unhandled_exception Object is harmless and expected. It has no effect on your ability to process payments. That notice is triggered by PayPal when the parent container HTML where the PayPal button is rendered is replaced.
The way WooCommerce works is the checkout page HTML is frequently replaced when the checkout fields are updated. WooCommerce fetches the updated HTML and replaces it on in the checkout page.
Kind Regards,