From 492dc1cd0442ec93ca90e130fdf67ef17910ef2c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 26 Sep 2021 19:56:09 +1000 Subject: [PATCH] Unwind gateway fees prior to marking as paid --- app/Services/Invoice/InvoiceService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/Invoice/InvoiceService.php b/app/Services/Invoice/InvoiceService.php index 7535cae5d0b2..918002f8dbc9 100644 --- a/app/Services/Invoice/InvoiceService.php +++ b/app/Services/Invoice/InvoiceService.php @@ -47,6 +47,8 @@ class InvoiceService */ public function markPaid() { + $this->removeUnpaidGatewayFees(); + $this->invoice = (new MarkPaid($this->invoice))->run(); return $this;