<?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: Authorize then Capture in the same transaction, is it possible ? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49059#M24680</link>
    <description>&lt;P&gt;You can use the "Prior Authorization and Capture" which only required the transactionID&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/guides/AIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=A_TransTypeFields.8.2.html"&gt;http://developer.authorize.net/guides/AIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=A_TransTypeFields.8.2.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but couldn't you confirm the order first, then do a auth_capture transaction?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Dec 2014 14:32:43 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2014-12-07T14:32:43Z</dc:date>
    <item>
      <title>Authorize then Capture in the same transaction, is it possible ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49058#M24679</link>
      <description>&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;for now what i'm doing - is sending my values to a function called "CheckPayment"&lt;/P&gt;&lt;P&gt;where i authorize the request using the AIM as such :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;decimal total = (decimal)_orderTotalCalculationService.GetShoppingCartTotal(cart);

 var request = new AuthorizeNet.AuthorizationRequest(cc_number, cc_date, total, "customer : " + _workContext.CurrentCustomer.Id + " verify card details", false);

var gate = new AuthorizeNet.Gateway(ConfigurationManager.AppSettings["loginId"], ConfigurationManager.AppSettings["transactionKey"]);&lt;BR /&gt;
var response = gate.Send(request);&lt;BR /&gt;if (response.Approved)&lt;BR /&gt;{&lt;BR /&gt;   return Json(new { Status = "success", info = response });&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then i save the AuthorizationCode in a JS variable , after the user is confiming his order , and click ( after another stage ) "Submit" - i send again the card number,date and authorizationCode all over again - when i only Capture the paymentm&lt;/P&gt;&lt;P&gt;here is the code :&lt;/P&gt;&lt;PRE&gt;public AuthorizeNet.GatewayResponse ClearPayment(string cc_number, string cc_date, string authorizationCode, decimal amount, string cc_code = "")
{
   var capture = new AuthorizeNet.CaptureRequest(authorizationCode,   
                      cc_number, cc_date, amount);
   capture.Type = "CAPTURE_ONLY";
   var gate = new AuthorizeNet.Gateway(   
                 ConfigurationManager.AppSettings["loginId"], 
                 ConfigurationManager.AppSettings["transactionKey"]);
   var response = gate.Send(capture);

   return (AuthorizeNet.GatewayResponse)response;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result is :&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://prntscr.com/5e5rtu&amp;nbsp;"&gt;http://prntscr.com/5e5rtu&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's work - but i'm sure there is a better way - can't i send the transactionId with the authorizationCode and so instead of having 2 transacions - the one that was waiting for the Capture - would change it's status ? &amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone show me an example of how to do so ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appriciated , thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2014 13:27:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49058#M24679</guid>
      <dc:creator>barak</dc:creator>
      <dc:date>2014-12-07T13:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize then Capture in the same transaction, is it possible ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49059#M24680</link>
      <description>&lt;P&gt;You can use the "Prior Authorization and Capture" which only required the transactionID&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/guides/AIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=A_TransTypeFields.8.2.html"&gt;http://developer.authorize.net/guides/AIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=A_TransTypeFields.8.2.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but couldn't you confirm the order first, then do a auth_capture transaction?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2014 14:32:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49059#M24680</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-12-07T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize then Capture in the same transaction, is it possible ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49060#M24681</link>
      <description>&lt;P&gt;first of all thanks - i did a little manuver but it worked :) .&lt;/P&gt;&lt;P&gt;i've set a new CaptureRequest , then set the Type = "PRIOR_AUTH_CAPTURE" .&lt;/P&gt;&lt;P&gt;did the trick, i guess with a little more effort i would even maybe extend the GateWay Request...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i left with another Question though .&lt;/P&gt;&lt;P&gt;how can i "force" the card check - to validate the cvv code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2014 15:43:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-then-Capture-in-the-same-transaction-is-it-possible/m-p/49060#M24681</guid>
      <dc:creator>barak</dc:creator>
      <dc:date>2014-12-07T15:43:22Z</dc:date>
    </item>
  </channel>
</rss>

