Skip to content

Commit 96dc693

Browse files
andimovadifucan
authored andcommitted
MCP-412: Checkout enhancements in CE
1 parent 5f05166 commit 96dc693

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ protected function submitQuote(QuoteEntity $quote, $orderData = [])
553553
$order->setCustomerFirstname($quote->getCustomerFirstname());
554554
$order->setCustomerMiddlename($quote->getCustomerMiddlename());
555555
$order->setCustomerLastname($quote->getCustomerLastname());
556+
$order->setEntityId($quote->getOrigOrderId());
556557
$this->submitQuoteValidator->validateOrder($order);
557558

558559
$this->eventManager->dispatch(

app/code/Magento/Sales/Model/OrderRepository.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,13 @@ private function setPaymentAdditionalInfo(OrderInterface $order): void
186186
if ($extensionAttributes === null) {
187187
$extensionAttributes = $this->orderExtensionFactory->create();
188188
}
189-
$paymentAdditionalInformation = $order->getPayment()->getAdditionalInformation();
189+
190+
$paymentAdditionalInformation = [];
191+
$payment = $order->getPayment();
192+
193+
if ($payment) {
194+
$paymentAdditionalInformation = $payment->getAdditionalInformation();
195+
}
190196

191197
$objects = [];
192198
foreach ($paymentAdditionalInformation as $key => $value) {

0 commit comments

Comments
 (0)