Skip to content

Commit 8b1924a

Browse files
author
Oleksii Korshenko
authored
MAGETWO-66108: [GitHub][PR] change getId() to getPaymentId() #7762
2 parents 4d34954 + 11ca490 commit 8b1924a

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Sales/Controller/Adminhtml/Transactions

1 file changed

+4
-1
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Transactions/Fetch.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ public function execute()
3333
return $resultRedirect->setPath('sales/*/');
3434
}
3535
try {
36-
$this->orderPaymentRepository->get($txn->getId())->setOrder($txn->getOrder())->importTransactionInfo($txn);
36+
$this->orderPaymentRepository
37+
->get($txn->getPaymentId())
38+
->setOrder($txn->getOrder())
39+
->importTransactionInfo($txn);
3740
$txn->save();
3841
$this->messageManager->addSuccess(__('The transaction details have been updated.'));
3942
} catch (\Magento\Framework\Exception\LocalizedException $e) {

0 commit comments

Comments
 (0)