64 $this->_coreRegistry = $coreRegistry;
68 parent::__construct($context);
78 $txn = $this->_objectManager->create(
85 $this->messageManager->addErrorMessage(
__(
'Please correct the transaction ID and try again.'));
86 $this->_actionFlag->set(
'', self::FLAG_NO_DISPATCH,
true);
89 $orderId = $this->
getRequest()->getParam(
'order_id');
91 $txn->setOrderUrl($this->
getUrl(
'sales/order/view', [
'order_id' => $orderId]));
94 $this->_coreRegistry->register(
'current_transaction', $txn);
getUrl($route='', $params=[])
__construct(\Magento\Backend\App\Action\Context $context, Registry $coreRegistry, PageFactory $resultPageFactory, LayoutFactory $resultLayoutFactory, OrderPaymentRepositoryInterface $orderPaymentRepository)