/**
  * Returns the instance of AuthorizeNetCIM class.
  *
  * @since  1.0.0
  *
  * @return M2_AuthorizeNetCIM The instance of AuthorizeNetCIM class.
  */
 protected function get_cim()
 {
     $cim = null;
     if (!empty(self::$cim)) {
         $cim = self::$cim;
     } else {
         $this->load_authorize_lib();
         $cim = new M2_AuthorizeNetCIM($this->api_login_id, $this->api_transaction_key);
         $cim->setSandbox($this->mode != self::MODE_LIVE);
         if (WDEV_DEBUG) {
             // defined in wpmu-lib submodule.
             $cim->setLogFile(WP_CONTENT_DIR . '/authorize-net.log');
         }
         self::$cim = $cim;
     }
     return apply_filters('ms_gateway_authorize_get_cim', $cim, $this);
 }
 /**
  * Returns the instance of AuthorizeNetCIM class.
  *
  * @since  1.0.0
  *
  * @return M2_AuthorizeNetCIM The instance of AuthorizeNetCIM class.
  */
 protected function get_cim()
 {
     $cim = null;
     if (!empty(self::$cim)) {
         $cim = self::$cim;
     } else {
         $this->load_authorize_lib();
         $cim = new M2_AuthorizeNetCIM($this->api_login_id, $this->api_transaction_key);
         $cim->setSandbox($this->mode != self::MODE_LIVE);
         if ($this->log_file) {
             $cim->setLogFile($this->log_file);
         }
         self::$cim = $cim;
     }
     return apply_filters('ms_gateway_authorize_get_cim', $cim, $this);
 }