Skip to content

Commit 7d50bb2

Browse files
committed
MC-41780: Paypal API improvements
1 parent 9a3cca3 commit 7d50bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ public function __construct(
114114
public function execute(): ResultInterface
115115
{
116116
$controllerResult = $this->resultFactory->create(ResultFactory::TYPE_JSON);
117-
$quoteId = $this->getRequest()->getParam('quoteId');
117+
$quoteId = (int)$this->getRequest()->getParam('quoteId');
118118
$payerId = $this->getRequest()->getParam('payerId');
119119
$tokenId = $this->getRequest()->getParam('paymentToken');
120-
$customerId = $this->getRequest()->getParam('customerId') ?: $this->_customerSession->getId();
120+
$customerId = (int)$this->getRequest()->getParam('customerId') ?: $this->_customerSession->getId();
121121

122122
try {
123123
if ($quoteId) {

0 commit comments

Comments
 (0)