Skip to content

Commit 42fa86b

Browse files
authored
Merge pull request #55 from PaystackHQ/fix/amount-for-quantified-payments
Fix total amount not showing on quantified payments on load
2 parents 2bb2032 + c7cc5bf commit 42fa86b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

README.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: paystack, kendysond, steveamaza
33
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
6-
Tested up to: 5.1
7-
Stable tag: 3.3.3
6+
Tested up to: 5.2
7+
Stable tag: 3.3.4
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -92,6 +92,8 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/wo
9292

9393

9494
== Changelog ==
95+
= 3.3.4 =
96+
* Fix issue where total is not displayed automatically for quantified payments
9597
= 3.3.0 =
9698
* Major fixes to convenience fee option!
9799
* Now known as 'Additional Charge' to clarify it does not _always_ pass transaction fees

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/PaystackHQ/Wordpress-Payment-forms-for-Paystack
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: 3.3.3
6+
Version: 3.3.4
77
Author: Paystack
88
Author URI: http://paystack.com
99
License: GPL-2.0+

public/js/paystack-forms-public.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function KkdPffPaystackFee() {
103103
});
104104
});
105105
if ($("#pf-vamount").length) {
106-
var amountField = $("#pf-vamount");
106+
var amountField = $("#pf-vamount");
107107
calculateTotal();
108108
} else {
109109
var amountField = $("#pf-amount");
@@ -190,6 +190,8 @@ function KkdPffPaystackFee() {
190190
} else {
191191
$("#pf-total").val(newvalue);
192192
}
193+
194+
console.log(quant);
193195
}
194196
function calculateFees(transaction_amount) {
195197
setTimeout(function() {
@@ -258,6 +260,10 @@ function KkdPffPaystackFee() {
258260
}
259261
}
260262
});
263+
if($("#pf-quantity").length){
264+
calculateTotal();
265+
};
266+
261267
$("#pf-quantity, #pf-vamount, #pf-amount").on("change", function() {
262268
calculateTotal();
263269
calculateFees();

0 commit comments

Comments
 (0)