sales_order_place_after event is fired for collecting analytic data.
frontend/admin depending on how the order was placed?
Right now, I have created the module, added the config.xml, and have created an observer with following code.
public function doSomeThing($observer)
$order = $observer->getEvent()->getOrder();
//whether the order was placed from backend or frontend
The observer method is getting executed when the order is placed. What should be the correct approach to achieve my custom functionality?
Note: I have to keep in mind that my observer code doesn't interfere with the checkout steps as the customer might/might not be redirected to payment gateway for further processing depending on the payment method chosen.