diff --git a/assets/images/banner.png b/assets/images/banner.png index 976bdcb..b9b43ac 100644 Binary files a/assets/images/banner.png and b/assets/images/banner.png differ diff --git a/assets/images/business.svg b/assets/images/business.svg deleted file mode 100644 index 5bdb56e..0000000 --- a/assets/images/business.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/images/personal.svg b/assets/images/personal.svg deleted file mode 100644 index b7a6f5d..0000000 --- a/assets/images/personal.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/assets/images/two-logo-w.svg b/assets/images/two-logo-w.svg deleted file mode 100644 index 3bef1c5..0000000 --- a/assets/images/two-logo-w.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/class/WC_Twoinc.php b/class/WC_Twoinc.php index e450d4d..b2611c7 100644 --- a/class/WC_Twoinc.php +++ b/class/WC_Twoinc.php @@ -2204,10 +2204,7 @@ private function make_request($endpoint, $payload = [], $method = 'POST', $param public function twoinc_account_init_notice() { global $pagenow; - // Return early if we're in options-general.php - if ($pagenow === 'options-general.php') { - return; - } + // Do not show on the Two plugin's own settings page if ( $pagenow === 'admin.php' && @@ -2218,6 +2215,8 @@ public function twoinc_account_init_notice() ) { return; } + + // Only show notice if either API key or merchant ID is missing if ($this->get_option('api_key') && $this->get_merchant_id()) { return; } @@ -2228,7 +2227,7 @@ public function twoinc_account_init_notice() echo '
- +

' . $headline . '

' . $benefits . '

@@ -2285,5 +2284,16 @@ public function process_admin_options() $_POST = $post_data; parent::process_admin_options(); } + + /** + * Get payment method icon + * + * @return string + */ + public function get_icon() + { + $icon_html = '' . esc_attr($this->title) . ''; + return apply_filters('woocommerce_gateway_icon', $icon_html, $this->id); + } } } diff --git a/docker-compose.yaml b/docker-compose.yaml index f546f40..50dae86 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,3 @@ -version: "3.1" - services: wordpress: container_name: wordpress