50 private $cartRepository;
84 $orderId = $this->cartManagement->placeOrder(
$cartId);
91 $this->getLogger()->critical($e);
93 __(
'A server error stopped your order from being placed. Please try to place your order again.'),
113 $quote->removeAddress(
$quote->getBillingAddress()->getId());
115 $quote->setDataChanges(
true);
119 $shippingCarrier = array_shift($shippingDataArray);
123 $this->paymentMethodManagement->set(
$cartId, $paymentMethod);
145 private function getLogger()
147 if (!$this->logger) {
150 return $this->logger;
159 private function getCartRepository()
161 if (!$this->cartRepository) {
163 ->get(\
Magento\Quote\Api\CartRepositoryInterface::class);
165 return $this->cartRepository;