public function getReferringTransactionAttempt($refTransactionId, $transactionOperation) {
    $attempts = $this->getReferringTransactionAttempts($refTransactionId, $transactionOperation);

    if (is_array($attempts) && count($attempts) > 0) {
      return $attempts[0];
    }

    return null;
  }
public function getReferringTransactionAttempt($refTransactionId, $transactionOperation) {
    $attempts = $this->getReferringTransactionAttempts($refTransactionId, $transactionOperation);

    if (is_array($attempts) && count($attempts) > 0) {
      return $attempts[0];
    }

    return null;
  }
public function getReferringTransactionAttempt ( $ refTransactionId , $ transactionOperation ) { $ attempts = $ this -> getReferringTransactionAttempts ( $ refTransactionId , $ transactionOperation ) ; if ( is_array ( $ attempts ) && count ( $ attempts ) > 0 ) { return $ attempts [ 0 ] ; } return null ; }
Get the transaction attempt referring to the provided transactionId with
the given operation.
In case several transactions are found will return the older one. Used for
example to retrieve the collection for a submission.

@param
refTransactionId The transaction identifier of the referral
(initial) transaction
@param
transactionOperation The operation of the transaction to retrieve
(collection, refund...)
@return TransactionAttempt The TransactionAttempt found or null if not
found
Get the transaction attempt referring to the provided transactionId with the given operation . In case several transactions are found will return the older one . Used for example to retrieve the collection for a submission .