¨4.0.1¨
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Modules\Checkout\Http\Controllers;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
use Modules\Order\Entities\Order;
|
||||
use Modules\Payment\Facades\Gateway;
|
||||
use Modules\Checkout\Events\OrderPlaced;
|
||||
@@ -14,8 +15,9 @@ class CheckoutCompleteController
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param int $orderId
|
||||
* @param \Modules\Checkout\Services\OrderService $orderService
|
||||
* @return \Illuminate\Http\Response
|
||||
* @param OrderService $orderService
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function store($orderId, OrderService $orderService)
|
||||
{
|
||||
@@ -37,16 +39,18 @@ class CheckoutCompleteController
|
||||
|
||||
event(new OrderPlaced($order));
|
||||
|
||||
if (! request()->ajax()) {
|
||||
if (!request()->ajax()) {
|
||||
return redirect()->route('checkout.complete.show');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function show()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user