title: woocommerce Dragonpay payment gateway
body: <p>how and where dragonpay access to my site/plugin so that dragonpay can update of order status in woocommerce?this is the callback method in my plugin</p>
  
  <pre><code>class payment_gateway extends WC_Payment_Gateway {
    function callback(){
       global $woocommerce;
       $order_id = $_GET['txnid'];
       $status = $_GET['status'];
       $order = new WC_Order( $order_id );
       if ($status == 'S') {
           $order-&gt;add_order_note('Dragonpay Payment Status: SUCCESSFUL');                             
           $order-&gt;payment_complete();
           wp_redirect($order-&gt;get_checkout_order_received_url());
           exit;
          }
     }
  
  }
  </code></pre>