mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-30 04:46:23 +00:00
51 - Green with Feature Envy
This commit is contained in:
@@ -37,7 +37,7 @@ class ConcertOrdersController extends Controller
|
||||
$this->paymentGateway->charge($reservation->totalCost(), request('payment_token'));
|
||||
|
||||
// Create an order for those tickets
|
||||
$order = Order::forTickets($reservation->tickets(), $reservation->email(), $reservation->totalCost());
|
||||
$order = $reservation->complete();
|
||||
|
||||
return response()->json($order, 201);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user