Skip to content

Commit da4664c

Browse files
committed
v2.1.0 bug fixes for amount not set
1 parent c94ff69 commit da4664c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.txt

Lines changed: 4 additions & 2 deletions
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.0.9
7+
Stable tag: 2.1.0
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

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

8585

8686
== Changelog ==
87+
= 2.1.0 =
88+
* Bug fixes for use variable amount
8789
= 2.0.9 =
88-
* Added multiple payment amounts on a form
90+
* Added multiple payment amounts on a single form
8991
* General code improvement
9092
= 2.0.8 =
9193
* Bug fixes for transaction charge.

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.0.9
6+
Version: 2.1.0
77
Author: Douglas Kendyson
88
Author URI: http://kendyson.com
99
License: GPL-2.0+

public/class-paystack-forms-public.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,8 @@ function kkd_pff_paystack_form_shortcode($atts) {
837837

838838
echo '</div>
839839
</div>';
840-
if ($minimum == 0 && $recur == 'no' && $usequantity == 'yes' && $amount != 0) {
840+
if ($minimum == 0 && $recur == 'no' && $usequantity == 'yes' && ($usevariableamount == 1 || $amount != 0)) {
841+
// if ($minimum == 0 && $recur == 'no' && $usequantity == 'yes' && $amount != 0) {
841842
echo '<div class="span12 unit">
842843
<label class="label">Quantity</label>
843844
<div class="select">

0 commit comments

Comments
 (0)