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 0e835c9 + 3026dfb commit 1b2a3f5Copy full SHA for 1b2a3f5
app/code/Magento/Paypal/Model/Express/Checkout.php
@@ -810,8 +810,12 @@ public function place($token, $shippingMethodCode = null)
810
case \Magento\Sales\Model\Order::STATE_PROCESSING:
811
case \Magento\Sales\Model\Order::STATE_COMPLETE:
812
case \Magento\Sales\Model\Order::STATE_PAYMENT_REVIEW:
813
- if (!$order->getEmailSent()) {
814
- $this->orderSender->send($order);
+ try {
+ if (!$order->getEmailSent()) {
815
+ $this->orderSender->send($order);
816
+ }
817
+ } catch (\Exception $e) {
818
+ $this->_logger->critical($e);
819
}
820
$this->_checkoutSession->start();
821
break;
0 commit comments