From 69c7dfae3c5cd5de2f826d0eb5e4f3077466ca08 Mon Sep 17 00:00:00 2001 From: htdat Date: Sat, 22 Apr 2017 11:48:27 +0700 Subject: [PATCH] Clean some redundant codes --- inc/class-wooviet-onepay-domestic.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/inc/class-wooviet-onepay-domestic.php b/inc/class-wooviet-onepay-domestic.php index 641a860..c48487a 100644 --- a/inc/class-wooviet-onepay-domestic.php +++ b/inc/class-wooviet-onepay-domestic.php @@ -49,8 +49,6 @@ class WooViet_OnePay_Domestic extends WC_Payment_Gateway { add_action( 'woocommerce_api_' . strtolower( __CLASS__ ), array( $this, 'handle_onepay_ipn' ) ); - // @todo: check whether or not this can be lodded in the cron job - add_action( 'wooviet_handle_onepay_querydr', array( $this, 'handle_onepay_querydr' ), 10, 1 ); } /** @@ -140,7 +138,7 @@ class WooViet_OnePay_Domestic extends WC_Payment_Gateway { wp_schedule_single_event( time() + 20 * 60, 'wooviet_handle_onepay_querydr', - array( $vpc_MerchTxnRef ) // @todo check this + array( $vpc_MerchTxnRef ) ); }