Skip to content

Commit

Permalink
Duplicate Order Confirmation Emails for PayPal Express checkout order
Browse files Browse the repository at this point in the history
  • Loading branch information
syzovao committed Apr 23, 2018
1 parent 199272b commit a97e880
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 a97e880

Please sign in to comment.