Minor fixes for Forte

This commit is contained in:
David Bomba 2022-06-24 16:06:44 +10:00
parent 4266300fe3
commit bea7cdf9a1

View File

@ -90,7 +90,7 @@ class CreditCard
$amount_with_fee = $payment_hash->data->total->amount_with_fee; $amount_with_fee = $payment_hash->data->total->amount_with_fee;
$invoice_totals = $payment_hash->data->total->invoice_totals; $invoice_totals = $payment_hash->data->total->invoice_totals;
$fee_total = 0; $fee_total = 0;
print_r($payment_hash->data->total);
for ($i = ($invoice_totals * 100) ; $i < ($amount_with_fee * 100); $i++) { for ($i = ($invoice_totals * 100) ; $i < ($amount_with_fee * 100); $i++) {
$calculated_fee = ( 3 * $i) / 100; $calculated_fee = ( 3 * $i) / 100;
$calculated_amount_with_fee = round(($i + $calculated_fee) / 100,2); $calculated_amount_with_fee = round(($i + $calculated_fee) / 100,2);