From 73d4ac1eb194d74cecae3677658c19059b946c34 Mon Sep 17 00:00:00 2001 From: Fabio Ribeiro Date: Wed, 11 Jun 2025 22:56:56 +0200 Subject: [PATCH] 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 --- app/Models/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Payment.php b/app/Models/Payment.php index ac9506c6..763a880b 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -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;