Skip to content

Commit 5669a6a

Browse files
ENGCOM-1479: [Forwardport] Duplicate Order Confirmation Emails for PayPal Express checkout order #15070
- Merge Pull Request #15070 from adrian-martinez-interactiv4/magento2:2.3-develop-PR-port-14820 - Merged commits: 1. 005b75f
2 parents a53347e + 005b75f commit 5669a6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Paypal/Model/Express/Checkout.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,9 @@ public function place($token, $shippingMethodCode = null)
809809
case \Magento\Sales\Model\Order::STATE_PROCESSING:
810810
case \Magento\Sales\Model\Order::STATE_COMPLETE:
811811
case \Magento\Sales\Model\Order::STATE_PAYMENT_REVIEW:
812-
$this->orderSender->send($order);
812+
if (!$order->getEmailSent()) {
813+
$this->orderSender->send($order);
814+
}
813815
$this->_checkoutSession->start();
814816
break;
815817
default:

0 commit comments

Comments
 (0)