Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-authorizenet
Block
Adminhtml
Order
View
Info
FraudDetails.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Authorizenet\Block\Adminhtml\Order\View\Info
;
7
8
use
Magento\Authorizenet\Model\Directpost
;
9
14
class
FraudDetails
extends
\Magento\Backend\Block\Template
15
{
19
protected
$registry
;
20
26
public
function
__construct
(
27
\
Magento
\Backend\Block\Template\
Context
$context,
28
\
Magento
\Framework\Registry
$registry
,
29
array
$data
= []
30
) {
31
$this->registry =
$registry
;
32
parent::__construct($context,
$data
);
33
}
34
38
public
function
getPayment
()
39
{
40
$order
= $this->registry->registry(
'current_order'
);
41
return
$order
->getPayment();
42
}
43
47
protected
function
_toHtml
()
48
{
49
return
($this->
getPayment
()->getMethod() ===
Directpost::METHOD_CODE
) ? parent::_toHtml() :
''
;
50
}
51
}
Magento\Authorizenet\Block\Adminhtml\Order\View\Info\FraudDetails\__construct
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, array $data=[])
Definition:
FraudDetails.php:26
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Authorizenet\Model\Directpost
Definition:
RequestTest.php:6
$order
$order
Definition:
order.php:55
Magento\Authorizenet\Block\Adminhtml\Order\View\Info\FraudDetails\_toHtml
_toHtml()
Definition:
FraudDetails.php:47
Magento\Authorizenet\Model\Directpost\METHOD_CODE
const METHOD_CODE
Definition:
Directpost.php:20
Magento\Authorizenet\Block\Adminhtml\Order\View\Info
Definition:
FraudDetails.php:6
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Authorizenet\Block\Adminhtml\Order\View\Info\FraudDetails\$registry
$registry
Definition:
FraudDetails.php:19
Context
Definition:
ClassesForConstructorIntegrity.php:33
Magento\Authorizenet\Block\Adminhtml\Order\View\Info\FraudDetails\getPayment
getPayment()
Definition:
FraudDetails.php:38
Magento\Authorizenet\Block\Adminhtml\Order\View\Info\FraudDetails
Definition:
FraudDetails.php:14