I want to stop the order confirmation email on a specific payment method.
I can't achieve exactly which module perform email sending task and in which controller where I apply condition(email, sale, checkout).
Please help me as soon as possible.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Take a look at the class
Magento\Quote\Observer\SubmitObserver, used in
You can override this class to add your test and avoid email sending.
Otherwise you can call the order function
false as parameter when placing order.