- /**
- * {@inheritdoc}
- */
- public function getAuthorizationTransaction($parentTransactionId, $paymentId, $orderId)
- {
- $transaction = false;
- if ($parentTransactionId) {
- $transaction = $this->transactionRepository->getByTransactionId(
- $parentTransactionId,
- $paymentId,
- $orderId
- );
- }
-
- return $transaction ?: $this->transactionRepository->getByTransactionType(
- Transaction::TYPE_AUTH,
- $paymentId,
- $orderId
- );
- }