When I look at the event checkout_onepage_controller_success_action and works, but I can not get the Id of the newly created order.
checkout_onepage_controller_success_action
Anyone have any idea
The event is dispatched like this:
Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId)));
So to get the last orderId, simply make your observer method like this:
public function orderSuccessEvent($observer) { $observer->getData('order_ids')); }