Skip to content

Commit 7cfc3db

Browse files
committed
Merge branch 'MC-41780' of github.com:magento-tsg/magento2ce into cia-tsg-2.4.3-bugfixes-05152021
2 parents c58a606 + 2ff0d3e commit 7cfc3db

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

app/code/Magento/Paypal/Controller/Express/OnAuthorization.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,11 @@ public function __construct(
114114
public function execute(): ResultInterface
115115
{
116116
$controllerResult = $this->resultFactory->create(ResultFactory::TYPE_JSON);
117-
$quoteId = $this->getRequest()->getParam('quoteId');
118117
$payerId = $this->getRequest()->getParam('payerId');
119118
$tokenId = $this->getRequest()->getParam('paymentToken');
120-
$customerId = $this->getRequest()->getParam('customerId') ?: $this->_customerSession->getId();
121119

122120
try {
123-
if ($quoteId) {
124-
$quote = $customerId ? $this->cartRepository->get($quoteId) : $this->guestCartRepository->get($quoteId);
125-
} else {
126-
$quote = $this->_getQuote();
127-
}
121+
$quote = $this->_getQuote();
128122

129123
$responseContent = [
130124
'success' => true,

app/code/Magento/Paypal/etc/csp_whitelist.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,10 @@
3737
<value id="www_pilot_payflowlink_paypal" type="host">pilot-payflowlink.paypal.com</value>
3838
</values>
3939
</policy>
40+
<policy id="connect-src">
41+
<values>
42+
<value id="www_sandbox_paypal_com" type="host">www.sandbox.paypal.com</value>
43+
</values>
44+
</policy>
4045
</policies>
4146
</csp_whitelist>

app/code/Magento/Paypal/view/frontend/web/js/in-context/express-checkout-smart-buttons.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ define([
4747
var params = {
4848
paymentToken: data.orderID,
4949
payerId: data.payerID,
50-
quoteId: clientConfig.quoteId || '',
51-
customerId: clientConfig.customerId || '',
5250
'form_key': clientConfig.formKey
5351
};
5452

0 commit comments

Comments
 (0)