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
Copy file name to clipboardExpand all lines: README.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@
8
8
9
9
**Requires at least:** 4.4
10
10
11
-
**Tested up to:** 4.7
11
+
**Tested up to:** 4.8
12
12
13
-
**Stable tag:** 4.0.1
13
+
**Stable tag:** 4.1.0
14
14
15
15
**License:** GPLv2 or later
16
16
@@ -23,15 +23,15 @@ Paystack WooCommerce Payment Gateway allows you to accept online payments from l
23
23
24
24
## Description
25
25
26
-
This is a Paystack payment gateway for Woocommerce.
26
+
This is a Paystack payment gateway for WooCommerce.
27
27
28
28
Paystack is on a mission to deliver a safe and convenient payment experience for customers and merchants. Paystack provide Nigerian merchants with the tools and services needed to accept online payments from local and international customers using MasterCard, Visa and Verve Cards.
29
29
30
30
To signup for a Paystack Merchant account visit their website by clicking [here](https://paystack.com)
31
31
32
-
Paystack Woocommerce Payment Gateway allows you to accept payment on your Woocommerce store using MasterCard, Visa and Verve Cards.
32
+
Paystack WooCommerce Payment Gateway allows you to accept payment on your Woocommerce store using MasterCard, Visa and Verve Cards.
33
33
34
-
With this Paystack Woocommerce Payment Gateway plugin, you will be able to accept the following payment methods in your shop:
34
+
With this Paystack WooCommerce Payment Gateway plugin, you will be able to accept the following payment methods in your shop:
35
35
36
36
*__MasterCard__
37
37
*__Visa__
@@ -141,6 +141,9 @@ To configure the plugin, go to __WooCommerce > Settings__ from the left hand me
141
141
142
142
## Changelog
143
143
144
+
### 4.1.0, July 7, 2017 ###
145
+
* Fix: Deprecated WooCommerce 2.X functions
146
+
144
147
### 4.0.1, April 10, 2017 ###
145
148
*Fix: Fatal error if WooCommerce 2.6.14 and below is installed
146
149
@@ -183,8 +186,8 @@ To configure the plugin, go to __WooCommerce > Settings__ from the left hand me
183
186
184
187
## Upgrade Notice
185
188
186
-
### 4.0.1
187
-
* Fix fatal error if WooCommerce 2.6.14 and below is installed
@@ -135,7 +147,7 @@ public function admin_options() {
135
147
136
148
<h3>Paystack</h3>
137
149
138
-
<h4>Optional: To avoid situations where bad network makes it impossible to verify transactions, set your webhook URL <a href="https://dashboard.paystack.co/#/settings/developer">here</a> to the URL below<strong style="color: red"><pre><code><?phpechoWC()->api_request_url( 'Tbz_WC_Paystack_Webhook' ); ?></code></pre></strong></h4>
150
+
<h4>Optional: To avoid situations where bad network makes it impossible to verify transactions, set your webhook URL <a href="https://dashboard.paystack.co/#/settings/developer" target="_blank" rel="noopener noreferrer">here</a> to the URL below<strong style="color: red"><pre><code><?phpechoWC()->api_request_url( 'Tbz_WC_Paystack_Webhook' ); ?></code></pre></strong></h4>
139
151
140
152
<?php
141
153
@@ -164,7 +176,7 @@ public function init_form_fields() {
164
176
'title' => 'Enable/Disable',
165
177
'label' => 'Enable Paystack',
166
178
'type' => 'checkbox',
167
-
'description' => 'Enable Paystack as a payment option on the checkout page',
179
+
'description' => 'Enable Paystack as a payment option on the checkout page.',
168
180
'default' => 'no',
169
181
'desc_tip' => true
170
182
),
@@ -182,6 +194,14 @@ public function init_form_fields() {
182
194
'desc_tip' => true,
183
195
'default' => 'Make payment using your debit and credit cards'
184
196
),
197
+
'testmode' => array(
198
+
'title' => 'Test mode',
199
+
'label' => 'Enable Test Mode',
200
+
'type' => 'checkbox',
201
+
'description' => 'Test mode enables you to test payments before going live. <br />Once the LIVE MODE is enabled on your Paystack account uncheck this.',
202
+
'default' => 'yes',
203
+
'desc_tip' => true
204
+
),
185
205
'payment_page' => array(
186
206
'title' => 'Payment Page',
187
207
'type' => 'select',
@@ -194,14 +214,6 @@ public function init_form_fields() {
194
214
'embed' => 'Inline Embed'
195
215
)
196
216
),
197
-
'testmode' => array(
198
-
'title' => 'Test mode',
199
-
'label' => 'Enable Test Mode',
200
-
'type' => 'checkbox',
201
-
'description' => 'Test mode enables you to test payments before going live. <br />Once the LIVE MODE is enabled on your Paystack account uncheck this.',
202
-
'default' => 'yes',
203
-
'desc_tip' => true
204
-
),
205
217
'test_secret_key' => array(
206
218
'title' => 'Test Secret Key',
207
219
'type' => 'text',
@@ -226,6 +238,70 @@ public function init_form_fields() {
226
238
'description' => 'Enter your Live Public Key here.',
227
239
'default' => ''
228
240
),
241
+
'custom_metadata' => array(
242
+
'title' => 'Custom Metadata',
243
+
'label' => 'Enable Custom Metadata',
244
+
'type' => 'checkbox',
245
+
'description' => 'If enabled, you will be able to send more information about the order to Paystack.',
246
+
'default' => 'no',
247
+
'desc_tip' => true
248
+
),
249
+
'meta_order_id' => array(
250
+
'title' => 'Order ID',
251
+
'label' => 'Send Order ID',
252
+
'type' => 'checkbox',
253
+
'description' => 'If checked, the Order ID will be sent to Paystack',
254
+
'default' => 'no',
255
+
'desc_tip' => true
256
+
),
257
+
'meta_name' => array(
258
+
'title' => 'Customer Name',
259
+
'label' => 'Send Customer Name',
260
+
'type' => 'checkbox',
261
+
'description' => 'If checked, the customer full name will be sent to Paystack',
262
+
'default' => 'no',
263
+
'desc_tip' => true
264
+
),
265
+
'meta_email' => array(
266
+
'title' => 'Customer Email',
267
+
'label' => 'Send Customer Email',
268
+
'type' => 'checkbox',
269
+
'description' => 'If checked, the customer email address will be sent to Paystack',
270
+
'default' => 'no',
271
+
'desc_tip' => true
272
+
),
273
+
'meta_phone' => array(
274
+
'title' => 'Customer Phone',
275
+
'label' => 'Send Customer Phone',
276
+
'type' => 'checkbox',
277
+
'description' => 'If checked, the customer phone will be sent to Paystack',
278
+
'default' => 'no',
279
+
'desc_tip' => true
280
+
),
281
+
'meta_billing_address' => array(
282
+
'title' => 'Order Billing Address',
283
+
'label' => 'Send Order Billing Address',
284
+
'type' => 'checkbox',
285
+
'description' => 'If checked, the order billing address will be sent to Paystack',
286
+
'default' => 'no',
287
+
'desc_tip' => true
288
+
),
289
+
'meta_shipping_address' => array(
290
+
'title' => 'Order Shipping Address',
291
+
'label' => 'Send Order Shipping Address',
292
+
'type' => 'checkbox',
293
+
'description' => 'If checked, the order shipping address will be sent to Paystack',
294
+
'default' => 'no',
295
+
'desc_tip' => true
296
+
),
297
+
'meta_products' => array(
298
+
'title' => 'Product(s) Purchased',
299
+
'label' => 'Send Product(s) Purchased',
300
+
'type' => 'checkbox',
301
+
'description' => 'If checked, the product(s) purchased will be sent to Paystack',
302
+
'default' => 'no',
303
+
'desc_tip' => true
304
+
),
229
305
);
230
306
231
307
}
@@ -236,41 +312,125 @@ public function init_form_fields() {
0 commit comments