/** * Checks if the configure-complus message needs to be rendered * * @since 1.5.3 * @see SV_WC_Plugin::add_admin_notices() */ public function add_admin_notices() { parent::add_admin_notices(); // on the plugin settings page render a notice if 3DSecure is enabled and mcrypt is not installed if ($this->is_plugin_settings()) { $wc_gateway_realex = new WC_Gateway_Realex(); if ($wc_gateway_realex->is_enabled()) { $threedsecure = $wc_gateway_realex->get_threedsecure(); if ($threedsecure->is_enabled() && !extension_loaded('mcrypt')) { $message = sprintf(__('WooCommerce Realex Payment Gateway: 3DSecure: PHP extension %1$smcrypt%2$s not detected, 3DSecure will not be active and no liability shift will occur until you install the %3$smcrypt%4$s PHP extension. Contact your host or server administrator to configure and install PHP mcrypt.', 'woocommerce-gateway-realex'), '<strong>', '</strong>', '<a href="http://www.php.net/manual/en/mcrypt.setup.php">', '</a>'); $this->get_admin_notice_handler()->add_admin_notice($message, 'mcrypt-missing'); } } } // check ssl dependency $this->check_ssl(); }