|
| _initTransaction () |
|
| _isAllowed () |
|
| _getSession () |
|
| getMessageManager () |
|
| _addBreadcrumb ($label, $title, $link=null) |
|
| _addContent (\Magento\Framework\View\Element\AbstractBlock $block) |
|
| _addLeft (\Magento\Framework\View\Element\AbstractBlock $block) |
|
| _addJs (\Magento\Framework\View\Element\AbstractBlock $block) |
|
| _isUrlChecked () |
|
| _processLocaleSettings () |
|
| _redirect ($path, $arguments=[]) |
|
| _forward ($action, $controller=null, $module=null, array $params=null) |
|
| _validateSecretKey () |
|
| _forward ($action, $controller=null, $module=null, array $params=null) |
|
| _redirect ($path, $arguments=[]) |
|
◆ __construct()
- Parameters
-
\Magento\Backend\App\Action\Context | $context | |
Registry | $coreRegistry | |
PageFactory | $resultPageFactory | |
LayoutFactory | $resultLayoutFactory | |
OrderPaymentRepositoryInterface | $orderPaymentRepository | |
Definition at line 57 of file Transactions.php.
64 $this->_coreRegistry = $coreRegistry;
68 parent::__construct($context);
◆ _initTransaction()
Initialize payment transaction model
- Returns
- \Magento\Sales\Model\Order\Payment\Transaction|bool
Definition at line 76 of file Transactions.php.
78 $txn = $this->_objectManager->create(
79 \
Magento\Sales\Model\Order\Payment\Transaction::class
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=[])
◆ $_coreRegistry
◆ $orderPaymentRepository
◆ $resultLayoutFactory
◆ $resultPageFactory
◆ ADMIN_RESOURCE
const ADMIN_RESOURCE = 'Magento_Sales::transactions' |
The documentation for this class was generated from the following file: