I have implemented a 3rd party payment gateway.
I am offering two payment methods - By cheque or by credit card.
When payment is done by cheque, the new order transactional email is fired.
But on payment by credit card, the new order email is not fired.
Is it a problem with my implementation of the payment module?
To fix this I want to see where is the code that fires a new order email on placing a new order (via check payment).