title: Magento: Invoice and capture an authorized order
body: <p>I am developing a module for a payment gateway that can authorize and capture in two different steps. So far I am able to authorize the order by running the following code:</p>
  
  <pre><code>class My_Gateway_Model_Method_Cc extends Mage_Payment_Model_Method_Cc
  {
      protected $_code          = 'mycode';
      protected $_canSaveCc     = true;
  
      protected $_canRefund                   = true;
      protected $_isGateway                   = true;
      protected $_canAuthorize                = true;
      protected $_canCapture                  = true;
      protected $_canCapturePartial           = false;
  
  
      public function authorize(Varien_Object $payment, $amount){
          /* code to call the payment gateway and authorize the charge */
      }
  
  
      public function capture(Varien_Object $payment, $amount){
          /* some code to capture the payment */
      }
  }
  </code></pre>
  
  <p>The problem is that when I place an order, and then I go into the invoicing panel I get this message:</p>
  
  <blockquote>
    <p>'Invoice will be created without communication with payment gateway'</p>
  </blockquote>
  
  <p>There is no option to capture the authorized payment nor it call the capture method when invoicing.</p>