-
Notifications
You must be signed in to change notification settings - Fork 5
Erro no método createInvoice #353
Copy link
Copy link
Open
Description
Há um erro no método createInvoice da classe: Pagarme\Pagarme\Observer\SalesOrderPlaceAfter
Há um return true logo no início do método:
`public function createInvoice($order)
{
return true;
$payment
->setIsTransactionClosed(true)
->registerCaptureNotification(
$order->getGrandTotal(),
true
);
$order->save();
// notify customer
$invoice = $payment->getCreatedInvoice();
if ($invoice && !$order->getEmailSent()) {
$order->addStatusHistoryComment(
'PGM - ' .
__(
'Notified customer about invoice #%1.',
$invoice->getIncrementId()
)
)->setIsCustomerNotified(true)
->save();
}
return true;
}`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels