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