Add a check if payment is valid before sending email.