/**
  * Initialize the gateway
  *
  * @since 2.0.0
  */
 public function __construct()
 {
     parent::__construct(WC_Authorize_Net_CIM::ECHECK_GATEWAY_ID, wc_authorize_net_cim(), array('method_title' => __('Authorize.Net CIM eCheck', 'woocommerce-gateway-authorize-net-cim'), 'method_description' => __('Allow customers to securely pay using their checking/savings accounts with Authorize.Net CIM.', 'woocommerce-gateway-authorize-net-cim'), 'supports' => array(self::FEATURE_PRODUCTS, self::FEATURE_PAYMENT_FORM, self::FEATURE_TOKENIZATION, self::FEATURE_TOKEN_EDITOR, self::FEATURE_DETAILED_CUSTOMER_DECLINE_MESSAGES, self::FEATURE_CUSTOMER_ID, self::FEATURE_ADD_PAYMENT_METHOD), 'payment_type' => self::PAYMENT_TYPE_ECHECK, 'environments' => array('production' => __('Production', 'woocommerce-gateway-authorize-net-cim'), 'test' => __('Test', 'woocommerce-gateway-authorize-net-cim')), 'shared_settings' => $this->shared_settings_names));
     // display the authorization message at checkout
     if ($this->is_authorization_message_enabled() && !is_add_payment_method_page()) {
         add_action('wc_' . $this->get_id() . '_payment_form_end', array($this, 'display_authorization_message'));
     }
     // adjust the recurring authorization message placeholders for subscriptions
     add_filter('wc_' . $this->get_id() . '_authorization_message_placeholders', array($this, 'adjust_subscriptions_placeholders'), 10, 2);
 }
 /**
  * Initialize the gateway
  *
  * @since 2.0.0
  */
 public function __construct()
 {
     parent::__construct(WC_Authorize_Net_CIM::CREDIT_CARD_GATEWAY_ID, wc_authorize_net_cim(), array('method_title' => __('Authorize.Net CIM', 'woocommerce-gateway-authorize-net-cim'), 'method_description' => __('Allow customers to securely pay using their credit cards with Authorize.Net CIM.', 'woocommerce-gateway-authorize-net-cim'), 'supports' => array(self::FEATURE_PRODUCTS, self::FEATURE_CARD_TYPES, self::FEATURE_PAYMENT_FORM, self::FEATURE_TOKENIZATION, self::FEATURE_TOKEN_EDITOR, self::FEATURE_CREDIT_CARD_CHARGE, self::FEATURE_CREDIT_CARD_AUTHORIZATION, self::FEATURE_CREDIT_CARD_CAPTURE, self::FEATURE_DETAILED_CUSTOMER_DECLINE_MESSAGES, self::FEATURE_REFUNDS, self::FEATURE_VOIDS, self::FEATURE_CUSTOMER_ID, self::FEATURE_ADD_PAYMENT_METHOD), 'payment_type' => self::PAYMENT_TYPE_CREDIT_CARD, 'environments' => array('production' => __('Production', 'woocommerce-gateway-authorize-net-cim'), 'test' => __('Test', 'woocommerce-gateway-authorize-net-cim')), 'shared_settings' => $this->shared_settings_names));
     // add scripts & markup when Accept.js is enabled
     if ($this->is_accept_js_enabled()) {
         // remove card number/csc input names so they're not POSTed
         add_filter('wc_' . $this->get_id() . '_payment_form_default_credit_card_fields', array($this, 'remove_credit_card_field_input_names'));
         // render a hidden input for the payment nonce before the credit card fields
         add_action('wc_' . $this->get_id() . '_payment_form', array($this, 'render_accept_js_fields'));
     }
 }