The cheque example doesn't use a payment response hook.
In the old version of my plugin, I had this in the constructor, in order to trigger a function when the gateway sends a response:
add_action('init', array(&$this, 'check_gateway_response'));
In the default WC payment gateways, I've seen this for example:
add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_ipn_response' ) );
I doesn't work for my module, function not triggered.
How can I trigger a function when the payment gateway sends an http response?
Thanks a lot for your answers.







