We have just upgraded Woocommerce to the latest version (2.4.12) in the hope that that might fix it, but no joy.
It may be related to this as your server needs to connect to PayPal in order to do the refund https://core.trac.wordpress.org/ticket/34935
Have replaced the ca-bundle.crt with the file they uploaded, but that hasn’t fixed it. Not sure what else to try?
You should look in your server error logs then to see if there are connection errors logged.
These are in the error logs:
realshaving.com [Wed Dec 16 13:39:14 2015] [error] [client 195.171.242.98:35978] AH01215: PHP Warning: Invalid argument supplied for foreach() in /home/sites/realshaving.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php on line 474: /home/sites/realshaving.com/public_html/wp-admin/post.php
realshaving.com [Wed Dec 16 13:39:14 2015] [error] [client 195.171.242.98:35978] AH01215: PHP Warning: Invalid argument supplied for foreach() in /home/sites/realshaving.com/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php on line 1005: /home/sites/realshaving.com/public_html/wp-admin/post.php
Guessing this is unrelated?
It looks like this is now working. There is a particular order that we are having problems with, the refund fails, but now just for that order.
For some reason WordPress cancelled the order, it says the customer cancelled it, but there is no way the customer can cancel the order (any idea how this would happen?). Also the customer received an email saying she had received a refund when she actually hasn’t. All a bit of a muddle but it seems to be an isolated order.
If the user didn’t pay at all, after X minutes it will auto-cancel. Nothing to refund.
Hello Mike,
same problem for me. I updated the ca-bundle.crt file but refund is not working.
I enabled the paypal log but found no file in the directory (permissions are ok) after trying to refund an order.
Think the problem may be related to this other topic.
Please help!
Thanks in advance