diff --git a/app/Services/ClientPortal/InstantPayment.php b/app/Services/ClientPortal/InstantPayment.php index 6d17873c8668..dfb41fa78c97 100644 --- a/app/Services/ClientPortal/InstantPayment.php +++ b/app/Services/ClientPortal/InstantPayment.php @@ -70,7 +70,10 @@ class InstantPayment $invoices = Invoice::whereIn('id', $this->transformKeys($payable_invoices->pluck('invoice_id')->toArray()))->withTrashed()->get(); $invoices->each(function($invoice){ - $invoice->service()->removeUnpaidGatewayFees()->save(); + $invoice->service() + ->marksent() + ->removeUnpaidGatewayFees() + ->save(); }); /* pop non payable invoice from the $payable_invoices array */