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
@@ -107,6 +107,9 @@ To configure the plugin, go to __WooCommerce > Settings__ from the left hand me
107
107
108
108
## Changelog ##
109
109
110
+
### 2.1.0 ###
111
+
* New: Add support for confirming payment using the webhook url
112
+
110
113
### 2.0.1 ###
111
114
* Fix: Paystack payment option and settings not available if Paystack WooCommerce Payment Gateway version 2.0.0 is installed and WooCommerce version 2.5.5 and below is installed
112
115
@@ -126,8 +129,8 @@ To configure the plugin, go to __WooCommerce > Settings__ from the left hand me
126
129
127
130
## Upgrade Notice ##
128
131
129
-
### 2.0.1 ###
130
-
* Important update. Fix Paystack payment option and settings not available if Paystack WooCommerce Payment Gateway version 2.0.0 is installed and WooCommerce version 2.5.5 and below is installed
132
+
### 2.1.0 ###
133
+
* Add support for confirming payment using the webhook url. This will fix issues with cancelled transactions after successful payment by customers.
@@ -124,7 +126,13 @@ public function is_available() {
124
126
*/
125
127
publicfunctionadmin_options() {
126
128
127
-
echo'<h3>Paystack</h3>';
129
+
?>
130
+
131
+
<h3>Paystack</h3>
132
+
133
+
<h4>If you are having issues with cancelled transactions after successful payment by customers, kindly set the url below as the Webhook URL in your <a href="https://dashboard.paystack.co/#/settings/developer">Paystack account</a> <strong style="color: red"><pre><code><?phpechoWC()->api_request_url( 'Tbz_WC_Paystack_Webhook' ); ?></code></pre></strong></h4>
134
+
135
+
<?php
128
136
129
137
if ( $this->is_valid_for_use() ){
130
138
@@ -307,6 +315,11 @@ public function verify_paystack_transaction() {
$notice = 'Thank you for shopping with us.<br />Your payment transaction was successful, but the amount paid is not the same as the total order amount.<br />Your order is currently on-hold.<br />Kindly contact us for more information regarding your order and payment status.';
434
+
$notice_type = 'notice';
435
+
436
+
// Add Customer Order Note
437
+
$order->add_order_note( $notice, 1 );
438
+
439
+
// Add Admin Order Note
440
+
$order->add_order_note('<strong>Look into this order</strong><br />This order is currently on hold.<br />Reason: Amount paid is less than the total order amount.<br />Amount Paid was <strong>₦'.$amount_paid.'</strong> while the total order amount is <strong>₦'.$order_total.'</strong><br />Paystack Transaction Reference: '.$paystack_ref );
@@ -131,7 +133,13 @@ public function is_available() {
131
133
*/
132
134
publicfunctionadmin_options() {
133
135
134
-
echo'<h3>Paystack</h3>';
136
+
?>
137
+
138
+
<h3>Paystack</h3>
139
+
140
+
<h4>If you are having issues with cancelled transactions after successful payment by customers, kindly set the url below as the Webhook URL in your <a href="https://dashboard.paystack.co/#/settings/developer">Paystack account</a> <strong style="color: red"><pre><code><?phpechoWC()->api_request_url( 'Tbz_WC_Paystack_Webhook' ); ?></code></pre></strong></h4>
141
+
142
+
<?php
135
143
136
144
if ( $this->is_valid_for_use() ){
137
145
@@ -473,7 +481,12 @@ public function verify_paystack_transaction() {
$notice = 'Thank you for shopping with us.<br />Your payment transaction was successful, but the amount paid is not the same as the total order amount.<br />Your order is currently on-hold.<br />Kindly contact us for more information regarding your order and payment status.';
604
+
$notice_type = 'notice';
605
+
606
+
// Add Customer Order Note
607
+
$order->add_order_note( $notice, 1 );
608
+
609
+
// Add Admin Order Note
610
+
$order->add_order_note('<strong>Look into this order</strong><br />This order is currently on hold.<br />Reason: Amount paid is less than the total order amount.<br />Amount Paid was <strong>₦'.$amount_paid.'</strong> while the total order amount is <strong>₦'.$order_total.'</strong><br />Paystack Transaction Reference: '.$paystack_ref );
@@ -99,6 +99,9 @@ To configure the plugin, go to __WooCommerce > Settings__ from the left hand me
99
99
100
100
== Changelog ==
101
101
102
+
= 2.1.0 =
103
+
* New: Add support for confirming payment using the webhook url
104
+
102
105
= 2.0.1 =
103
106
* Fix: Paystack payment option and settings not available if Paystack WooCommerce Payment Gateway version 2.0.0 is installed and WooCommerce version 2.5.5 and below is installed
104
107
@@ -118,8 +121,8 @@ To configure the plugin, go to __WooCommerce > Settings__ from the left hand me
118
121
119
122
== Upgrade Notice ==
120
123
121
-
= 2.0.1 =
122
-
* Important update. Fix Paystack payment option and settings not available if Paystack WooCommerce Payment Gateway version 2.0.0 is installed and WooCommerce version 2.5.5 and below is installed
124
+
= 2.1.0 =
125
+
* Add support for confirming payment using the webhook url. This will fix issues with cancelled transactions after successful payment by customers.
0 commit comments