I am creating a payment gateway for WooCommerce where payment is made using an external URL. I need this page to be able to send messages back to the WooCommerce plugin, and the βcallbackβ URL is all I need.
WooCommerce seems to have this, but I can't get it to work. You must be able to ping:
http:
And then you should add add_action ('woocommerce_api_callback', 'callback_handler'); And then he should run such a function public function callback_handler () {}
But when I go to this URL, all I see is 1 on my page - my handler should redirect to another page (this is what I did to make it obvious). I would love it if someone has an example of this. I tried adding add_action and the handler function a lot of places, no luck.
source
share