Use updated WooCommerce API for status cahnge and order completion
Opened this issue · 0 comments
I was trying to run some automation when people pays from Boleto (ticket) and the status changes to complete after receiving the payment but it's not working.
After lots of tests and the developers of Uncanny Automator evaluate the code they found out that Ebanx is not using the updated API so it does not work.
Hhere is part of their message:
This only says that the payment gateway is still not using the updated WooCommerce APIs for status change and order completion. Without that, there's no way for Automator to detect such events because it completely has to adhere to what the WooCommerce standards are.
Given this understanding, there is no difference between completing the order manually and through a payment gateway because both use the same APIs in the background.
I hope this helps. Please contact the developers of these gateways and pass on this information so that they may implement the APIs correctly.
The solution would be update their code as sugested in an answer here: https://stackoverflow.com/questions/22935358/woocommerce-change-order-status-with-php-code/64285242#64285242
Hope it helps and can be fixed.