mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
85 - Storing Charge Details with Orders
This commit is contained in:
@@ -30,9 +30,9 @@ class Reservation
|
||||
|
||||
public function complete($paymentGateway, $paymentToken)
|
||||
{
|
||||
$paymentGateway->charge($this->totalCost(), $paymentToken);
|
||||
$charge = $paymentGateway->charge($this->totalCost(), $paymentToken);
|
||||
|
||||
return Order::forTickets($this->tickets(), $this->email(), $this->totalCost());
|
||||
return Order::forTickets($this->tickets(), $this->email(), $charge);
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
|
||||
Reference in New Issue
Block a user