From feb9b1d24fa354ca5614df0bdc828f8a03ea05aa Mon Sep 17 00:00:00 2001 From: serhack Date: Wed, 2 Aug 2017 21:14:20 +0200 Subject: [PATCH] Update monero_payments.php --- monero/include/monero_payments.php | 97 +++++++++++++----------------- 1 file changed, 43 insertions(+), 54 deletions(-) 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 "
-
-
-
-
-

Monero Payment Box

-
-
- -
-
- Send " . $amount_xmr2 . " XMR to
- or scan QR Code with your mobile device

- If you don't know how to pay with monero, click instructions button. -
-
+
+
+
+
+

Monero Payment Box

+
+
+ +
+
+ Send " . $amount_xmr2 . " XMR to
+ or scan QR Code with your mobile device

+ If you don't know how to pay with monero, click instructions button. +
+
- -
-
-
- +
+
+ +
-
+ -