title: transaction ID and payment object in Magento
body: <p>My question might looks vogue, but I am facing difficult over it..</p>
  
  <p>part of function code is </p>
  
  <pre><code> public function capture(Varien_Object $payment, $amount){
  
              if(!$this-&gt;isEnabled()){
                  return parent::capture($payment, $amount);
              }else{
      ---- MORE CODE--
      $quote = Mage::getSingleton('customer/session');
          $nickname = $quote-&gt;getAuthorizenetNickname();
          $profile = $quote-&gt;getProfile();
          $postedNickname = $quote-&gt;getNickname();
  
          if ($payment-&gt;getCcTransId()) {
          $payment-&gt;setAnetTransType(self::REQUEST_TYPE_PRIOR_AUTH_CAPTURE);
          } else {
          $payment-&gt;setAnetTransType(self::REQUEST_TYPE_AUTH_CAPTURE);
          }
  
          $payment-&gt;setAmount($amount);
  
          $request= $this-&gt;_buildRequest($payment);
          $result = $this-&gt;_postRequest($request);
  
          MORE CODE HERE, NOT RELEVENT TO MY ISSUE    
  </code></pre>
  
  <p>I got two question here</p>
  
  <p><strong>HOW CAN I PASS TRANSACTION ID IN</strong> </p>
  
  <pre><code>$payment-&gt;setAmount($amount);   
  $request= $this-&gt;_buildRequest($payment);
  $result = $this-&gt;_postRequest($request);
  </code></pre>
  
  <p>and 2nd question is </p>
  
  <blockquote>
    <p>how can I Echo / debug value of transactionID being passed </p>
  </blockquote>
  
  <p>might be very easy for you, but I am at failure</p>
  
  <p><strong>tried so far</strong></p>
  
  <pre><code>$payment-&gt;setTransID($payment-&gt;gerOrder-&gt;getTransID());   
  and 
  $payment-&gt;gerOrder-&gt;getTransID()
  $payment-&gt;setAmount($amount);   
  $request= $this-&gt;_buildRequest($payment);
  </code></pre>
  
  <p>thanks for your help and guideline</p>