Woocommerce Custom payment gateway callback function not working
<p>I have been struggling with this for some time now. I almost explored all google replies etc... </p>

<p>Here is my code:</p>

<pre><code>class WC_Gateway_mysolugion extends WC_Payment_Gateway {

public function __construct() {

    ...
    ...

    /* Hook IPN callback logic*/
    add_action( 'woocommerce_api_wc_gateway_mysolugion', array( $this, 'check_callback' ) );

  }

  ....

  function check_callback() {
     // other code
  }
</code></pre>

<p>The problem is that the function <strong><code>check_callback</code></strong> never get called when controll returns back to the site from payment gateway site.</p>

<p>What I am doing wrong?</p>

<p>Any help will be appreciated.</p>

<p>Thanks.</p>