fix: Payment confirmation error (#376)

Error caused when using Payments module, when try Stripe redirects back
to InvoiceShelf, and the module calls the InvoiceShelf `generatePayment`.

Relates #369
This commit is contained in:
Fabio Ribeiro
2025-06-11 22:56:56 +02:00
committed by GitHub
parent e832c7661a
commit 73d4ac1eb1

View File

@@ -459,7 +459,7 @@ class Payment extends Model implements HasMedia
->setNextNumbers();
$data['payment_number'] = $serial->getNextNumber();
$data['payment_date'] = Carbon::now()->format('y-m-d');
$data['payment_date'] = Carbon::now();
$data['amount'] = $invoice->total;
$data['invoice_id'] = $invoice->id;
$data['payment_method_id'] = request()->payment_method_id;