Unwind gateway fees prior to marking as paid

This commit is contained in:
David Bomba 2021-09-26 19:56:09 +10:00
parent f5dd1ae613
commit 492dc1cd04

View File

@ -47,6 +47,8 @@ class InvoiceService
*/ */
public function markPaid() public function markPaid()
{ {
$this->removeUnpaidGatewayFees();
$this->invoice = (new MarkPaid($this->invoice))->run(); $this->invoice = (new MarkPaid($this->invoice))->run();
return $this; return $this;