Child form to send email notification only when payment successful on parent form

How can I set confirmation email (tickets) set on the nested child form to be sent only when the payment is successful?