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-checkout
Model
Session
SuccessValidator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Model\Session
;
7
14
class
SuccessValidator
15
{
19
protected
$checkoutSession
;
20
25
public
function
__construct
(
26
\
Magento
\Checkout\Model\
Session
$checkoutSession
27
) {
28
$this->checkoutSession =
$checkoutSession
;
29
}
30
34
public
function
isValid
()
35
{
36
if
(!$this->checkoutSession->getLastSuccessQuoteId()) {
37
return
false
;
38
}
39
40
if
(!$this->checkoutSession->getLastQuoteId() || !$this->checkoutSession->getLastOrderId()) {
41
return
false
;
42
}
43
return
true
;
44
}
45
}
Magento\Checkout\Model\Session\SuccessValidator\__construct
__construct(\Magento\Checkout\Model\Session $checkoutSession)
Definition:
SuccessValidator.php:25
Magento\Checkout\Model\Session
Definition:
SuccessValidator.php:6
Magento\Checkout\Model\Session\SuccessValidator\$checkoutSession
$checkoutSession
Definition:
SuccessValidator.php:19
Magento\Checkout\Model\Session\SuccessValidator\isValid
isValid()
Definition:
SuccessValidator.php:34
Magento
Magento\Checkout\Model\Session
Definition:
Session.php:17
Magento\Checkout\Model\Session\SuccessValidator
Definition:
SuccessValidator.php:14