Skip to content

Commit 586b322

Browse files
author
Yushkin, Dmytro
committed
MAGETWO-39685: Order number is absent on success page for PayPal Advanced Checkout
1 parent e1b0bb8 commit 586b322

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

app/code/Magento/Paypal/Controller/Payflow/ReturnUrl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public function execute()
2727
\Magento\Sales\Model\Order::STATE_COMPLETE,
2828
];
2929
if (in_array($order->getState(), $allowedOrderStates)) {
30-
$this->_checkoutSession->unsLastRealOrderId();
3130
$redirectBlock->setGotoSuccessPage(true);
3231
} else {
3332
$gotoSection = $this->_cancelPayment(strval($this->getRequest()->getParam('RESPMSG')));

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@ protected function updateOrder(Order $order, $orderState, $orderStatus, $isCusto
350350
break;
351351
case ($message):
352352
case ($originalOrderState && $message):
353-
if ($originalOrderState != $orderState || $originalOrderStatus != $orderStatus) {
354-
$order->setState($orderState)
355-
->setStatus($orderStatus)
356-
->addStatusHistoryComment($message)
357-
->setIsCustomerNotified($isCustomerNotified);
358-
}
353+
case ($originalOrderState != $orderState):
354+
case ($originalOrderStatus != $orderStatus):
355+
$order->setState($orderState)
356+
->setStatus($orderStatus)
357+
->addStatusHistoryComment($message)
358+
->setIsCustomerNotified($isCustomerNotified);
359359
break;
360360
default:
361361
break;

0 commit comments

Comments
 (0)