<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Invalid Capture Amount in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25631#M13667</link>
    <description>&lt;P&gt;This will probably be something that has to be answered by an expert on Magento. The specific error text of "Invalid Capture Amount" doesn't exist in our system.&amp;nbsp; We have similar messages for when an attempt is made to capture a transaction for more than what was authorized, but I have no way of knowing what's going on when you hit that capture button.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2012 17:50:58 GMT</pubDate>
    <dc:creator>Trevor</dc:creator>
    <dc:date>2012-04-12T17:50:58Z</dc:date>
    <item>
      <title>Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25549#M13626</link>
      <description>&lt;P&gt;I have the Payment Action set to Authorize only in the backend of my Magento store. &amp;nbsp;When I go to capture the order at a later time through my backend, I get an error stating "Invalid order amount". &amp;nbsp; Anyone know why?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 14:26:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25549#M13626</guid>
      <dc:creator>novidecor</dc:creator>
      <dc:date>2012-04-11T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25551#M13627</link>
      <description>&lt;P&gt;I meant "Invalid Capture Amount".&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 15:11:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25551#M13627</guid>
      <dc:creator>novidecor</dc:creator>
      <dc:date>2012-04-11T15:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25631#M13667</link>
      <description>&lt;P&gt;This will probably be something that has to be answered by an expert on Magento. The specific error text of "Invalid Capture Amount" doesn't exist in our system.&amp;nbsp; We have similar messages for when an attempt is made to capture a transaction for more than what was authorized, but I have no way of knowing what's going on when you hit that capture button.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:50:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/25631#M13667</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2012-04-12T17:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/26133#M13908</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Send capture request to gateway&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param Mage_Payment_Model_Info $payment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param decimal $amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return Mage_Paygate_Model_Authorizenet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function capture(Varien_Object $payment, $amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($amount &amp;lt;= 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mage::throwException(Mage::helper('paygate')-&amp;gt;__('Invalid amount for capture.'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;_initCardsStorage($payment);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($this-&amp;gt;_isPreauthorizeCapture($payment)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;_preauthorizeCapture($payment, $amount);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if ($this-&amp;gt;isPartialAuthorization($payment)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;_partialAuthorization($payment, $amount, self::REQUEST_TYPE_AUTH_CAPTURE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;_place($payment, $amount, self::REQUEST_TYPE_AUTH_CAPTURE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $payment-&amp;gt;setSkipTransactionCreation(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This the code from the back of magento.&amp;nbsp; Its trying to capture $0.&amp;nbsp; Do you know why?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 16:56:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/26133#M13908</guid>
      <dc:creator>novidecor</dc:creator>
      <dc:date>2012-04-30T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/26329#M14002</link>
      <description>&lt;P&gt;Hey novidecor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, we're still not going to be able to help you out with this as it's too Magento-specific. I would really suggest contacting them to see if they can help you out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 19:40:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/26329#M14002</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2012-05-08T19:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/72187#M44562</link>
      <description>&lt;P&gt;You need to comment in a file app/code/core/Mage/Paygate/Model/Authorizenet.php following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($this-&amp;gt;_formatAmount(&lt;BR /&gt;$cardsStorage-&amp;gt;getProcessedAmount() - $cardsStorage-&amp;gt;getCapturedAmount()) &amp;lt; $requestedAmount&lt;BR /&gt;) {&lt;BR /&gt;//Mage::throwException(Mage::helper('paygate')-&amp;gt;__('Invalid amount for capture.'));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 18:53:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/72187#M44562</guid>
      <dc:creator>vipin12117</dc:creator>
      <dc:date>2020-06-12T18:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Capture Amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/72188#M44563</link>
      <description>&lt;P&gt;You need to comment in a file app/code/core/Mage/Paygate/Model/Authorizenet.php following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($this-&amp;gt;_formatAmount(&lt;BR /&gt;$cardsStorage-&amp;gt;getProcessedAmount() - $cardsStorage-&amp;gt;getCapturedAmount()) &amp;lt; $requestedAmount&lt;BR /&gt;) {&lt;BR /&gt;//Mage::throwException(Mage::helper('paygate')-&amp;gt;__('Invalid amount for capture.'));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 18:55:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Invalid-Capture-Amount/m-p/72188#M44563</guid>
      <dc:creator>vipin12117</dc:creator>
      <dc:date>2020-06-12T18:55:07Z</dc:date>
    </item>
  </channel>
</rss>

