I am a new magento developer and i am currently working on creating a new custom payment module.
My module redirects the user to a 3rd party payment provider to complete the payment. Once the response from that provider is received and is successful the order is being considered as completed.
My issue is, when the user presses the 'Place order' button an email to the seller of the product is being sent. I would like to disable that, because the user is first redirected to the payment provider and there is the possibility of cancelling the order (or fail with it / provide false credit card info). And because of that a seller might get notified with email, but in reality the order can be invalid/not fully completed.
So to summarize, is there a way to disable that programmatically??