From 00f40f4c6503b9101b387d2b9d30757b063357ee Mon Sep 17 00:00:00 2001 From: Jason Woods Date: Thu, 11 Jan 2018 12:48:19 +0000 Subject: [PATCH] Magento PayPal checkout fails if email sending fails / other payment method does not --- app/code/Magento/Paypal/Model/Express/Checkout.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Paypal/Model/Express/Checkout.php b/app/code/Magento/Paypal/Model/Express/Checkout.php index e9f2c1b8415a8..3fb3e30126291 100644 --- a/app/code/Magento/Paypal/Model/Express/Checkout.php +++ b/app/code/Magento/Paypal/Model/Express/Checkout.php @@ -809,7 +809,11 @@ public function place($token, $shippingMethodCode = null) case \Magento\Sales\Model\Order::STATE_PROCESSING: case \Magento\Sales\Model\Order::STATE_COMPLETE: case \Magento\Sales\Model\Order::STATE_PAYMENT_REVIEW: - $this->orderSender->send($order); + try { + $this->orderSender->send($order); + } catch (\Exception $e) { + $this->_logger->critical($e); + } $this->_checkoutSession->start(); break; default: