I’m looking to add some data generated after payment (API key) that I can then add into the email that goes out confirming the order. So far every event I’ve tried happens either too soon (before payment) or too late (the email is gone already).
What I could really use is not just a list of events, but the order in which they trigger.. I’ve tried several, including sales_order_payment_pay, sales_order_place_before, checkout_onepage_controller_success_action and so on..
Add some temporary debugging code to
app/Mage.php