Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
regdos committed Dec 6, 2018
1 parent 7962f34 commit 24c487d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Model/OrderPaymentResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function getByTransactionTxnId($txnId)
{
$searchCriteria = $this->searchCriteriaBuilder->addFilter('txn_id', $txnId, 'eq')->create();
$transactionList = $this->transactionRepository->getList($searchCriteria)->getItems();
reset($transactionList);
/** @var \Magento\Sales\Api\Data\TransactionInterface $transaction */
$transaction = current($transactionList);
/** @var Payment $payment */
Expand Down

0 comments on commit 24c487d

Please sign in to comment.