164 - Paying Promoters Directly

This commit is contained in:
Adam Wathan
2018-01-26 11:58:50 -05:00
parent 0db962d04c
commit 7442baa5c5
6 changed files with 14 additions and 14 deletions

View File

@@ -28,9 +28,9 @@ class Reservation
return $this->email;
}
public function complete($paymentGateway, $paymentToken)
public function complete($paymentGateway, $paymentToken, $destinationAccountId)
{
$charge = $paymentGateway->charge($this->totalCost(), $paymentToken);
$charge = $paymentGateway->charge($this->totalCost(), $paymentToken, $destinationAccountId);
return Order::forTickets($this->tickets(), $this->email(), $charge);
}