parent
94ab823632
commit
3f95393f12
|
|
@ -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' ) );
|
||||
|
|
|
|||
Loading…
Reference in New Issue