For automatic invoice you can write below code in system.xml:
<payment_action translate="label">
<label>Payment Action</label>
<frontend_type>select</frontend_type>
<source_model>paygate/authorizenet_source_paymentAction</source_model>
<sort_order>20</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</payment_action>
and then in config.xml you can add below line:
<payment_action>authorize_capture</payment_action>
For order status you need to add below code in system.xml:
<order_status translate="label">
<label>New Order Status</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_order_status_new</source_model>
<sort_order>30</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
and in config.xml you need to write:
<order_status>processing</order_status>
checkout_onepage_controller_success_action
, this way i can have my order ID. Then i made an helper which update my order, generate and send my invoice. Regards,