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: admin/class-paystack-forms-admin.php
+121-7Lines changed: 121 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ function kkd_pff_paystack_setting_page() {
34
34
<h1>Paystack Forms API KEYS Settings!</h1>
35
35
<h3>Paystack</h3>
36
36
37
-
<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><?phpechoget_site_url().'/kkd/wpffp/webhook/'; ?></code></pre></strong></
37
+
<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><?phpechoget_site_url().'/kkd/wpffp/webhook/'; ?></code></pre></strong></
$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.';
53
+
$notice_type = 'notice';
54
+
55
+
// Add Customer Order Note
56
+
$order->add_order_note( $notice, 1 );
57
+
58
+
// Add Admin Order Note
59
+
$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 );
0 commit comments