title: Magento Questions get customer details and onepage/checkout/success doesn't sending email
body: <p>How to get customers data so i can pass it to a gateway payment.</p>
  
  <p>Here is my model:</p>
  
  <pre><code>public function getStandardCheckoutFormFields() {
          $orderIncrementId = $this-&gt;getCheckout()-&gt;getLastRealOrderId();
          $order = Mage::getModel('sales/order')-&gt;loadByIncrementId($orderIncrementId);
          //$order = $this-&gt;get_sale_order($orderIncrementId);
          echo Mage::getModel('customer/customer')-&gt;load($orderIncrementId);
  
          $productArray = array();
  
          foreach ($order-&gt;getAllItems() as $item) {
              $productArray[] = array(
                  "product_name"  =&gt; $item-&gt;getName(),
                  "product_qty"   =&gt; $item-&gt;getQtyOrdered(),
                  "product_price" =&gt; $item-&gt;getPrice(),
              );
          }
          return $productArray;
      }
  </code></pre>
  
  <p>here is my controller:</p>
  
  <pre><code>public function redirectAction(){
          $session = Mage::getSingleton('checkout/session');
          $session-&gt;setAsurepayCustompayQuoteId($session-&gt;getQuoteId());
          $this-&gt;getResponse()-&gt;setBody($this-&gt;getLayout()-&gt;createBlock('custompay/redirect')-&gt;toHtml());
          $session-&gt;unsQuoteId();
          $session-&gt;unsRedirectUrl();
      }
  </code></pre>
  
  <p>This are running perfectly running, the problem is i can't get customer details such as customer name, address and etc.</p>
  
  <p>I already tried this code</p>
  
  <pre><code>Mage::getSingleton(customer/customer)-&gt;getData();
  </code></pre>
  
  <p>There was a result but not printing.</p>
  
  <p>In the checkout page success (onepage). When customer redirected here, There is no email will be send to the customer and the order was not update as completed.</p>