@ -6,7 +6,6 @@ class Monero_Gateway extends WC_Payment_Gateway
private $monero_daemon;
function __construct()
{
$this->id = "monero_gateway";
$this->method_title = __("Monero GateWay", 'monero_gateway');
$this->method_description = __("Monero Payment Gateway Plug-in for WooCommerce. You can find more information about this payment gateway in our website. WARN: You'll need a daemon online for your address.", 'monero_gateway');
@ -35,25 +34,13 @@ class Monero_Gateway extends WC_Payment_Gateway
}
add_action('admin_notices', array(
$this,
'do_ssl_check'
));
add_action('admin_notices', array(
$this,
'validate_fields'
));
add_action('woocommerce_thankyou_' . $this->id, array( $this, 'instruction' ) );
add_action('admin_notices', array($this,'do_ssl_check'));
add_action('admin_notices', array($this,'validate_fields'));
add_action('woocommerce_thankyou_' . $this->id, array($this,'instruction'));
if (is_admin()) {
/* Save Settings */
add_action('woocommerce_update_options_payment_gateways_' . $this->id, array(
$this,
'process_admin_options'
add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this,'process_admin_options'
));
}
$this->monero_daemon = new Monero_Library($this->host . ':' . $this->port . '/json_rpc', $this->username, $this->password);
@ -255,7 +242,9 @@ class Monero_Gateway extends WC_Payment_Gateway
< div class = 'panel-footer' >
< a class = 'btn btn-info btn-lg' style = 'width: 100%; font-size: 14px; ' data-toggle = 'modal' data-target = '#myModal' > Instructions< / a >
< / div >
< / div > < / div > < / div >
< / div >
< / div >
< / div >
< div class = 'modal fade' id = 'myModal' role = 'dialog' >
< div class = 'modal-dialog' >