Fixes for pre purchase

This commit is contained in:
David Bomba 2023-03-17 14:38:00 +11:00
parent d91099a279
commit 033ce1af95
3 changed files with 3 additions and 2 deletions

View File

@ -267,6 +267,7 @@ class InstantPayment
'amount_with_fee' => $invoice_totals + $fee_totals, 'amount_with_fee' => $invoice_totals + $fee_totals,
'client' => $client, 'client' => $client,
'pre_payment' => $this->request->pre_payment, 'pre_payment' => $this->request->pre_payment,
'is_recurring' => $this->request->is_recurring,
]; ];
if ($is_credit_payment || $totals <= 0) { if ($is_credit_payment || $totals <= 0) {

View File

@ -21,7 +21,7 @@
$checked_off = ''; $checked_off = '';
} }
if (isset($pre_payment) && $pre_payment == '1') { if (isset($pre_payment) && $pre_payment == '1' && isset($is_recurring) && $is_recurring == '1') {
$token_billing_string = 'true'; $token_billing_string = 'true';
} }

View File

@ -8,7 +8,7 @@
$token_billing_string = 'false'; $token_billing_string = 'false';
} }
if (isset($pre_payment) && $pre_payment == '1') { if (isset($pre_payment) && $pre_payment == '1' && isset($is_recurring) && $is_recurring == '1') {
$token_billing_string = 'true'; $token_billing_string = 'true';
} }