Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function checkIfApprovedNotificationReceived(string $transactionId): bool |
||
35 | { |
||
36 | $firstDataNotification = $this->firstDataRepository->findPaymentFirstDataNotificationByTransactionId($transactionId); |
||
37 | |||
38 | if (!$firstDataNotification) { |
||
39 | return false; |
||
40 | } |
||
41 | |||
42 | return $firstDataNotification->getStatus() === static::NOTIFICATION_STATUS_APPROVED; |
||
43 | } |
||
45 |