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-paypal
Helper
Hss.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Helper
;
7
11
class
Hss
extends
\Magento\Framework\App\Helper\AbstractHelper
12
{
18
protected
$_hssMethods
= [
19
\Magento\Paypal\Model\Config::METHOD_HOSTEDPRO
,
20
\Magento\Paypal\Model\Config::METHOD_PAYFLOWLINK
,
21
\Magento\Paypal\Model\Config::METHOD_PAYFLOWADVANCED
,
22
];
23
27
protected
$_checkoutSession
;
28
35
public
function
__construct
(
36
\
Magento
\Framework\
App
\Helper\
Context
$context,
37
\
Magento
\
Checkout
\Model\Session $checkoutSession
38
) {
39
$this->_checkoutSession = $checkoutSession;
40
parent::__construct($context);
41
}
42
49
public
function
getReviewButtonTemplate
(
$name
)
50
{
51
$quote
= $this->_checkoutSession->getQuote();
52
if
(
$quote
) {
53
$payment
=
$quote
->getPayment();
54
if
(
$payment
&& in_array(
$payment
->getMethod(),
$this->_hssMethods
)) {
55
return
$name
;
56
}
57
}
58
return
''
;
59
}
60
66
public
function
getHssMethods
()
67
{
68
return
$this->_hssMethods
;
69
}
70
}
Magento\Paypal\Helper\Hss\getHssMethods
getHssMethods()
Definition:
Hss.php:66
Magento\Paypal\Helper\Hss\$_checkoutSession
$_checkoutSession
Definition:
Hss.php:27
Magento\Framework\App
Magento\Paypal\Model\Config\METHOD_PAYFLOWADVANCED
const METHOD_PAYFLOWADVANCED
Definition:
Config.php:70
Magento\Paypal\Helper\Checkout
Definition:
Checkout.php:13
$quote
$quote
Definition:
paypal_quote.php:17
$payment
$payment
Definition:
order.php:17
Magento\Paypal\Helper
Definition:
DataTest.php:6
Magento\Paypal\Helper\Hss\__construct
__construct(\Magento\Framework\App\Helper\Context $context, \Magento\Checkout\Model\Session $checkoutSession)
Definition:
Hss.php:35
Magento\Paypal\Model\Config\METHOD_HOSTEDPRO
const METHOD_HOSTEDPRO
Definition:
Config.php:72
Magento\Paypal\Model\Config\METHOD_PAYFLOWLINK
const METHOD_PAYFLOWLINK
Definition:
Config.php:68
Magento
Context
Definition:
ClassesForConstructorIntegrity.php:33
Magento\Framework\App\Helper\AbstractHelper
Definition:
AbstractHelper.php:13
Magento\Paypal\Helper\Hss\getReviewButtonTemplate
getReviewButtonTemplate($name)
Definition:
Hss.php:49
Magento\Paypal\Helper\Hss\$_hssMethods
$_hssMethods
Definition:
Hss.php:18
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14
Magento\Paypal\Helper\Hss
Definition:
Hss.php:11