From 7be34ab5235547c5a3f12a18ba2f5afdd6c290e6 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Sun, 26 Feb 2023 06:06:20 +0330 Subject: [PATCH] fix invoice tracking --- app/Http/Controllers/Payment/GatewayRedirectController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Payment/GatewayRedirectController.php b/app/Http/Controllers/Payment/GatewayRedirectController.php index 654bcff..d3e381d 100755 --- a/app/Http/Controllers/Payment/GatewayRedirectController.php +++ b/app/Http/Controllers/Payment/GatewayRedirectController.php @@ -139,7 +139,9 @@ class GatewayRedirectController if ($request->has('transport_id')){ $t = Transport::whereId($request->transport_id)->first(); $invoice->total_price += $t->price; + $invoice->transport_price = $t->price; } + $invoice->save(); // dd($invoice); // $invoice->update(['total_price' =>, 'hash' => ]); \Session::remove('card');