How to add order tracking code executed on place order but before redirection to payment gateway
I need to integrate my Magento shop with some third party order tracking service. The service provider asked me to include some code on the last page of the checkout process when the order is created but before a customer is redirected to the payment gateway. I use one page checkout and payment service extension and there is no intermediate page between place order button click and the redirect to add the code on.
Simplified version of the code is something like this: