Skip to content

Commit 347fd4d

Browse files
committed
Add fee for quantity payments
1 parent 1b69936 commit 347fd4d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

public/js/paystack-forms-public.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ function KkdPffPaystackFee() {
216216
obj.withThreshold(settings.fee.ths);
217217
obj.withCap(settings.fee.cap);
218218
obj.withPercentage(settings.fee.prc);
219-
219+
if(quant){
220+
transaction_amount = transaction_amount * quant;
221+
}
220222
var total = obj.addFor(transaction_amount * 100) / 100;
221223
var fees = total - transaction_amount;
222224
}
@@ -225,19 +227,11 @@ function KkdPffPaystackFee() {
225227
.html(currency + " " + fees.toFixed(2))
226228
.show()
227229
.digits();
228-
if(quant){
229-
$(".pf-txntotal")
230-
.hide()
231-
.html(currency + " " + total.toFixed(2) + " X " + quant)
232-
.show()
233-
.digits();
234-
} else {
235230
$(".pf-txntotal")
236231
.hide()
237232
.html(currency + " " + total.toFixed(2))
238233
.show()
239234
.digits();
240-
}
241235
}, 100);
242236
}
243237

0 commit comments

Comments
 (0)