Skip to content

Commit 8c05bab

Browse files
committed
v2.1.1 - bug fixes for miminum payment amount
1 parent da4664c commit 8c05bab

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://paystack.com/demo
44
Tags: paystack, recurrent payments, nigeria, mastercard, visa, target,Naira,payments,verve,donation,church,NGO,form,contact form 7, form,
55
Requires at least: 3.1
66
Tested up to: 4.7
7-
Stable tag: 2.1.0
7+
Stable tag: 2.1.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -84,6 +84,8 @@ You can also follow us on Twitter! **[@paystack](http://twitter.com/paystack)**
8484

8585

8686
== Changelog ==
87+
= 2.1.1 =
88+
* Bug fixes for minimum amount.
8789
= 2.1.0 =
8890
* Bug fixes for use variable amount
8991
= 2.0.9 =

admin/class-paystack-forms-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function kkd_pff_paystack_dashboard_table_data( $column, $post_id ) {
196196
$count_query = 'select count(*) from '.$table.' WHERE post_id = "'.$post_id.'" AND paid = "1"';
197197
$num = $wpdb->get_var($count_query);
198198

199-
echo '<a href="'.admin_url('admin.php?page=submissions&form='.$post_id) .'">'. $num.'</a>';
199+
echo '<u><a href="'.admin_url('admin.php?page=submissions&form='.$post_id) .'">'. $num.'</a></u>';
200200
break;
201201
default :
202202
break;

paystack-forms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Payment forms for Paystack
44
Plugin URI: https://github.com/Kendysond/Wordpress-paystack-forms
55
Description: Payment forms for Paystack allows you create forms that will be used to bill clients for goods and services via Paystack.
6-
Version: 2.1.0
6+
Version: 2.1.1
77
Author: Douglas Kendyson
88
Author URI: http://kendyson.com
99
License: GPL-2.0+

public/class-paystack-forms-public.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ function kkd_pff_paystack_form_shortcode($atts) {
753753
if ((($user_id != 0) && ($loggedin == 'yes')) || $loggedin == 'no') {
754754

755755
echo "<h1 id='pf-form".$id."'>".$obj->post_title."</h1>";
756-
echo '<form version="2.0.8" enctype="multipart/form-data" action="' . admin_url('admin-ajax.php') . '" url="' . admin_url() . '" method="post" class="paystack-form j-forms" novalidate>
756+
echo '<form version="2.1.1" enctype="multipart/form-data" action="' . admin_url('admin-ajax.php') . '" url="' . admin_url() . '" method="post" class="paystack-form j-forms" novalidate>
757757
<div class="j-row">';
758758
echo '<input type="hidden" name="action" value="kkd_pff_paystack_submit_action">';
759759
echo '<input type="hidden" name="pf-id" value="' . $id . '" />';
@@ -1493,15 +1493,19 @@ function kkd_pff_paystack_confirm_payment() {
14931493

14941494
}
14951495
if ($txncharge == 'customer') {
1496-
$oamount = kkd_pff_paystack_add_paystack_charge($oamount);
1496+
1497+
if ($minimum == 0 && $amount != 0) {
1498+
$oamount = kkd_pff_paystack_add_paystack_charge($oamount);
1499+
1500+
}
14971501
}
14981502

14991503

15001504
// if ($txncharge == 'customer') {
15011505
// $amount = kkd_pff_paystack_add_paystack_charge($amount);
15021506
// }
15031507
if( $oamount != $amount_paid ) {
1504-
echo $oamount. ' - '.$amount_paid;
1508+
// echo $oamount. ' - '.$amount_paid;
15051509
$message = "Invalid amount Paid. Amount required is ".$currency."<b>".number_format($oamount)."</b>";
15061510
$result = "failed";
15071511
}else{

0 commit comments

Comments
 (0)