From 3f95393f127123c7f48b6868e0557b0f88c25f90 Mon Sep 17 00:00:00 2001 From: hitsword Date: Mon, 20 May 2019 14:11:00 +0800 Subject: [PATCH] debug Signed-off-by: hitsword --- class-wc-huayi-score.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/class-wc-huayi-score.php b/class-wc-huayi-score.php index 186168a..74508c4 100644 --- a/class-wc-huayi-score.php +++ b/class-wc-huayi-score.php @@ -25,14 +25,16 @@ class WC_Huayi_Score extends WC_Payment_Gateway { $this->method_description = __( '调用系统积分数据进行支付.', 'huayi_score' ); $this->supports = array('refunds'); - // Load the settings. + // 加载配置. $this->init_form_fields(); $this->init_settings(); - // Define user set variables + // 定义用户设置的变量. $this->title = $this->get_option( 'title' ); $this->description = $this->get_option( 'description' ); $this->instructions = $this->get_option( 'instructions', $this->description ); + $this->apiurl = $this->get_option( 'apiurl' ); + $this->token = $this->get_option( 'token' ); // Actions add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );