Skip to content

Commit 7e6a778

Browse files
ENGCOM-1492: [Backport] Duplicate Order Confirmation Emails for PayPal Express checkout order #15094
2 parents 0c3aae8 + 3380ce4 commit 7e6a778

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
@@ -816,7 +816,9 @@ public function place($token, $shippingMethodCode = null)
816816
case \Magento\Sales\Model\Order::STATE_PROCESSING:
817817
case \Magento\Sales\Model\Order::STATE_COMPLETE:
818818
case \Magento\Sales\Model\Order::STATE_PAYMENT_REVIEW:
819-
$this->orderSender->send($order);
819+
if (!$order->getEmailSent()) {
820+
$this->orderSender->send($order);
821+
}
820822
$this->_checkoutSession->start();
821823
break;
822824
default:

0 commit comments

Comments
 (0)