You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,7 +83,7 @@ public function admin_notices() {
79
83
}
80
84
81
85
// Check required fields
82
-
if ( ! ( $this->merchant_id && $this->publishable_key ) ) {
86
+
if ( ! ( $this->public_key && $this->secret_key ) ) {
83
87
echo'<div class="error"><p>' . sprintf( 'Please enter your Paystack merchant details <a href="%s">here</a> to be able to use the Paystack WooCommerce plugin.', admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=wc_gateway_paystack' ) ) . '</p></div>';
84
88
return;
85
89
}
@@ -94,7 +98,7 @@ public function is_available() {
94
98
95
99
if ( $this->enabled == "yes" ) {
96
100
97
-
if ( ! ( $this->merchant_id && $this->publishable_key ) ) {
101
+
if ( ! ( $this->public_key && $this->secret_key ) ) {
98
102
returnfalse;
99
103
}
100
104
returntrue;
@@ -149,13 +153,25 @@ public function init_form_fields() {
149
153
'description' => 'Test Mode Option',
150
154
'default' => 'yes'
151
155
),
152
-
'test_publishable_key' => array(
156
+
'test_secret_key' => array(
157
+
'title' => 'Test Secret Key',
158
+
'type' => 'text',
159
+
'description' => '',
160
+
'default' => ''
161
+
),
162
+
'test_public_key' => array(
153
163
'title' => 'Test Public Key',
154
164
'type' => 'text',
155
165
'description' => '',
156
166
'default' => ''
157
167
),
158
-
'live_publishable_key' => array(
168
+
'live_secret_key' => array(
169
+
'title' => 'Live Secret Key',
170
+
'type' => 'text',
171
+
'description' => '',
172
+
'default' => ''
173
+
),
174
+
'live_public_key' => array(
159
175
'title' => 'Live Public Key',
160
176
'type' => 'text',
161
177
'description' => '',
@@ -175,12 +191,12 @@ public function payment_scripts() {
0 commit comments