When the store receives the payment confirmation from our gateway we add a comment on the order and put it on hold to check the fraud system before sending it to customer.
the code is like this:
Mage::helper('Boleto')->__(htmlentities("Pagamento do Boleto Confirmado.")),true
please note that the order status is ‘processing’.
Now I need to know how to auto-generate invoice in this code.
here in brazil the invoice is always for the full order, so we donÂ´t need to have more than 1 invoice per order…