diff --git a/monero/include/monero_payments.php b/monero/include/monero_payments.php index 8d79bf7..a17c8f8 100644 --- a/monero/include/monero_payments.php +++ b/monero/include/monero_payments.php @@ -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); @@ -232,47 +219,49 @@ class Monero_Gateway extends WC_Payment_Gateway echo "