mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user