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
… fix
  • Loading branch information
rogyar committed May 8, 2018
1 parent b2eb795 commit b6e2ad0
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 b6e2ad0

Please sign in to comment.