diff --git a/app/Services/ClientPortal/InstantPayment.php b/app/Services/ClientPortal/InstantPayment.php index b8cc2b6cba7d..1b0daac41314 100644 --- a/app/Services/ClientPortal/InstantPayment.php +++ b/app/Services/ClientPortal/InstantPayment.php @@ -267,6 +267,7 @@ class InstantPayment 'amount_with_fee' => $invoice_totals + $fee_totals, 'client' => $client, 'pre_payment' => $this->request->pre_payment, + 'is_recurring' => $this->request->is_recurring, ]; if ($is_credit_payment || $totals <= 0) { diff --git a/resources/views/portal/ninja2020/gateways/includes/save_card.blade.php b/resources/views/portal/ninja2020/gateways/includes/save_card.blade.php index ce4967258a9f..86ca662f4f92 100644 --- a/resources/views/portal/ninja2020/gateways/includes/save_card.blade.php +++ b/resources/views/portal/ninja2020/gateways/includes/save_card.blade.php @@ -21,7 +21,7 @@ $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'; } diff --git a/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php index d4d81ef11d7d..c4bc33bbdf5a 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php @@ -8,7 +8,7 @@ $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'; }