Hi, what hook should be triggered in WC2 for payment response when the http response is sent by the payment server?
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.
Hi, thanks a lot.
Is this retocompatible with 1.x?
is there any free payment gateway example, or a complete tutorial for custom payment gateways in WC2?