I just read through the documentation for Payment Failed Emails which says:

A notification is sent to the customer if the payment method that is chosen during checkout fails to complete the transaction.

What does this really mean? Is an email sent is during the checkout? Or after the checkout and payment is completed and for some reason, the payment method does not work?

I've just set it up in a sample Magento 2.1.0 and no emails are sent when there are payment errors. Just a brief message saying Unable to place order. Please try again pops up and disappears.


1 Answer 1


"Unable to place order. Please try again"

mean customer does not enable to create order whenever placing the order from checkout. . This error is created when Customer customer failed place an order.

But, Payment Failed Emails mail is fire when we have called the $this->_objectManager->get('Magento\Checkout\Helper\Data') ->sendPaymentFailedEmail($this->getOnepage()->getQuote(), $e->getMessage())

at checkout/onepage/SaveOrder function.

It is basically called when

error type :

\Magento\Framework\Exception\LocalizedException $e)

\Exception $e

At Magento\Checkout\Controller\Onepage\SaveOrder;

So, this error is generate this two times bascially

  • I looked in the file vendor/magento/module-checkout/Controller/Onepage/SaveOrder.php on line 61. So, if the error type is PaymentException, the method is not fired? Isn't that an issue?
    – V.S
    Jan 2, 2017 at 9:15
  • no.. that is not issue issue. bcoz put this failed mail... depend on logic
    – Amit Bera
    Jan 2, 2017 at 9:17
  • I opened an issue on GitHub for this: github.com/magento/magento2/issues/11347 Those notifications are not working as they should.
    – ermannob
    Oct 11, 2017 at 9:00
  • excellent... i am also waiting
    – Amit Bera
    Oct 11, 2017 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.