Skip to content

Commit

Permalink
ENGCOM-1372: Duplicate Order Confirmation Emails for PayPal Express c…
Browse files Browse the repository at this point in the history
…heckout order #14820

 - Merge Pull Request #14820 from rocketweb/magento2:duplicate_paypal_order_email
 - Merged commits:
   1. a97e880
  • Loading branch information
magento-engcom-team committed Apr 23, 2018
2 parents 199272b + a97e880 commit c69b6e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Paypal/Model/Express/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,9 @@ public function place($token, $shippingMethodCode = null)
case \Magento\Sales\Model\Order::STATE_PROCESSING:
case \Magento\Sales\Model\Order::STATE_COMPLETE:
case \Magento\Sales\Model\Order::STATE_PAYMENT_REVIEW:
$this->orderSender->send($order);
if (!$order->getEmailSent()) {
$this->orderSender->send($order);
}
$this->_checkoutSession->start();
break;
default:
Expand Down

0 comments on commit c69b6e3

Please sign in to comment.