public function completePurchase($data, Payment $payment) { if ($payment->isFinished()) { return; } throw new RentException('Missing payment'); }