Hello,
I'd like to post a reply here as well (apart from our email conversation).
Thanks again for the nice feedback, we really appreciate it!
My colleague Helena solved similar question in this forum thread:
http://devnet.kentico.com/Forums.aspx?forumid=36&threadid=17441The Order is always created before payment.
To decide whether the notification should or shouldn't be sent, you could use custom e-commerce provider - CustomOrderInfoProvider.
There are methods: SendOrderStatusNotificationToAdministrator and SendOrderStatusNotificationToCustomer.
Similarly as Helena advised there, if you test whether the payment result was Ok or Failed, you can decide to call nothing in one of these methods and it will not send the appropriate notification.
Hope this will help for your aim.
Regards,
Zdenek