getRequest()->getParam('id'); $row = $this->_rowFactory->create()->load($rowId); if (!$row->getId()) { $this->_redirect('adminhtml/*/'); return; } $this->_coreRegistry->register('current_transaction', $row); $this->_initAction(); $this->_view->getPage()->getConfig()->getTitle()->prepend(__('View Transaction')); $this->_addContent( $this->_view->getLayout()->createBlock( \Magento\Paypal\Block\Adminhtml\Settlement\Details::class, 'settlementDetails' ) ); $this->_view->renderLayout(); } }