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
Controller
Express
AbstractExpress
UpdateShippingMethods.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Paypal\Controller\Express\AbstractExpress
;
8
9
class
UpdateShippingMethods
extends
\Magento\Paypal\Controller\Express\AbstractExpress
10
{
16
public
function
execute
()
17
{
18
try
{
19
$this->
_initCheckout
();
20
$this->_checkout->prepareOrderReview($this->
_initToken
());
21
$this->_view->loadLayout(
'paypal_express_review'
);
22
23
$this->
getResponse
()->setBody(
24
$this->_view
25
->getLayout()
26
->getBlock(
'express.review.shipping.method'
)
27
->setQuote($this->
_getQuote
())
28
->toHtml()
29
);
30
return
;
31
}
catch
(\
Magento
\Framework\
Exception
\
LocalizedException
$e) {
32
$this->messageManager->addExceptionMessage(
33
$e,
34
$e->getMessage()
35
);
36
}
catch
(\
Exception
$e) {
37
$this->messageManager->addExceptionMessage(
38
$e,
39
__
(
'We can\'t update shipping method.'
)
40
);
41
}
42
$this->
getResponse
()->setBody(
43
'<script>window.location.href = '
. $this->_url->getUrl(
'*/*/review'
) .
';</script>'
44
);
45
}
46
}
Magento\Paypal\Controller\Express\AbstractExpress\_initToken
_initToken($setToken=null)
Definition:
AbstractExpress.php:161
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Paypal\Controller\Express\AbstractExpress\UpdateShippingMethods
Definition:
UpdateShippingMethods.php:9
Magento\Paypal\Controller\Express\AbstractExpress
Definition:
AbstractExpress.php:15
__
__()
Definition:
__.php:13
Magento\Paypal\Controller\Express\AbstractExpress\_getQuote
_getQuote()
Definition:
AbstractExpress.php:215
Magento\Paypal\Controller\Express\AbstractExpress\_initCheckout
_initCheckout()
Definition:
AbstractExpress.php:133
Magento\Framework\Webapi\Exception
Definition:
Exception.php:20
Magento
Magento\Paypal\Controller\Express\AbstractExpress
Definition:
Cancel.php:7
Magento\Paypal\Controller\Express\AbstractExpress\UpdateShippingMethods\execute
execute()
Definition:
UpdateShippingMethods.php:16
Magento\Checkout\Controller\Express\RedirectLoginInterface\getResponse
getResponse()