Skip to content

Commit 3cb0bde

Browse files
committed
change icon & title also remove description
1 parent df133eb commit 3cb0bde

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

assets/images/cards.png

-15.1 KB
Binary file not shown.
10.1 KB
Loading

paystack-woocommerce-payment-gateway.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function __construct() {
3737
$this->init_settings();
3838

3939
// Get setting values
40-
$this->title = $this->get_option( 'title' );
41-
$this->description = $this->get_option( 'description' );
40+
$this->title = 'Debit/Credit Cards';
4241
$this->enabled = $this->get_option( 'enabled' );
4342
$this->testmode = $this->get_option( 'testmode' ) === 'yes' ? true : false;
4443

@@ -68,7 +67,7 @@ public function __construct() {
6867
*/
6968
public function get_icon() {
7069

71-
$icon = '<img src="' . WC_HTTPS::force_https_url( plugins_url( 'assets/images/cards.png' , __FILE__ ) ) . '" alt="cards" />';
70+
$icon = '<img src="' . WC_HTTPS::force_https_url( plugins_url( 'assets/images/paystack-woocommerce.png' , __FILE__ ) ) . '" alt="cards" />';
7271

7372
return apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
7473
}
@@ -135,18 +134,6 @@ public function init_form_fields() {
135134
'description' => '',
136135
'default' => 'no'
137136
),
138-
'title' => array(
139-
'title' => 'Title',
140-
'type' => 'text',
141-
'description' => 'This controls the title which the user sees during checkout.',
142-
'default' => ''
143-
),
144-
'description' => array(
145-
'title' => 'Description',
146-
'type' => 'textarea',
147-
'description' => 'This controls the description which the user sees during checkout.',
148-
'default' => ''
149-
),
150137
'testmode' => array(
151138
'title' => 'Test mode',
152139
'label' => 'Enable Test Mode',

0 commit comments

Comments
 (0)