We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5084541 + 57f9fef commit 75e24ddCopy full SHA for 75e24dd
app/code/Magento/Paypal/Model/Express/Checkout.php
@@ -812,8 +812,12 @@ public function place($token, $shippingMethodCode = null)
812
case \Magento\Sales\Model\Order::STATE_PROCESSING:
813
case \Magento\Sales\Model\Order::STATE_COMPLETE:
814
case \Magento\Sales\Model\Order::STATE_PAYMENT_REVIEW:
815
- if (!$order->getEmailSent()) {
816
- $this->orderSender->send($order);
+ try {
+ if (!$order->getEmailSent()) {
817
+ $this->orderSender->send($order);
818
+ }
819
+ } catch (\Exception $e) {
820
+ $this->_logger->critical($e);
821
}
822
$this->_checkoutSession->start();
823
break;
0 commit comments