Merge pull request #3668 from rahulcs0082/development

update invoice status paid using paypal
This commit is contained in:
Jitendra Singh 2020-08-05 19:42:00 +05:30 committed by GitHub
commit 9f17f21119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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");
}
}
}