Skip to content

Commit 7b3640d

Browse files
committed
B2B-1552: PayPal express compatibility fix
1 parent eb028fa commit 7b3640d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,11 @@ private function prepareQuote()
181181
$quote = $this->userContext->getUserId()
182182
? $this->cartRepository->get($quoteId)
183183
: $this->guestCartRepository->get($quoteId);
184-
} else {
185-
$quote = $this->_getQuote();
184+
if ((int)$quote->getCustomer()->getId() === (int)$this->userContext->getUserId()) {
185+
return $quote;
186+
}
186187
}
187-
return $quote;
188+
return $this->_getQuote();
188189
}
189190
/**
190191
* Get paypal token

0 commit comments

Comments
 (0)