update invoice status paid using paypal
This commit is contained in:
parent
028cd1050b
commit
1e1756ea23
|
|
@ -105,7 +105,9 @@ class Ipn
|
|||
$this->orderRepository->update(['status' => 'processing'], $this->order->id);
|
||||
|
||||
if ($this->order->canInvoice()) {
|
||||
$this->invoiceRepository->create($this->prepareInvoiceData());
|
||||
$invoice = $this->invoiceRepository->create($this->prepareInvoiceData());
|
||||
|
||||
$this->invoiceRepository->updateInvoiceState($invoice, "paid");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue