<?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: Prior Authorization Capture using C# SDK in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25711#M13705</link>
    <description>&lt;P&gt;I haven't done this yet, but my plan is to write a class that extends GatewayRequest and submits the raw XML request. I will post code when I have done this so that others can use it.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2012 18:09:33 GMT</pubDate>
    <dc:creator>cpoirier</dc:creator>
    <dc:date>2012-04-17T18:09:33Z</dc:date>
    <item>
      <title>Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25689#M13694</link>
      <description>&lt;P&gt;I have my test system setup using the C# SDK for AIM , and due to our company's ordering process, we need to do an Authorization first, then capture the authorization separately. I initially did this using the Capture transaction type, but that obviously isn't correct, because it creates a new transaction. I can't find anything in the SDK about doing a PriorAuthCapture transaction type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something, or is there another way to do the PriorAuthCapture using the C# SDK?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 22:07:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25689#M13694</guid>
      <dc:creator>cpoirier</dc:creator>
      <dc:date>2012-04-16T22:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25701#M13700</link>
      <description>&lt;P&gt;It is missing from the SDK. You can modify the source.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 11:40:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25701#M13700</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-17T11:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25707#M13703</link>
      <description>&lt;P&gt;How would we modify the source to&amp;nbsp;perform&amp;nbsp;a&amp;nbsp;Prior Authorization Capture?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The class library is pre-compiled into the&amp;nbsp;AuthorizeNet.dll. Can you send a&amp;nbsp;working&amp;nbsp;sample?&amp;nbsp;I'm having the exact same issue. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 18:01:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25707#M13703</guid>
      <dc:creator>eggsarebad</dc:creator>
      <dc:date>2012-04-17T18:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25709#M13704</link>
      <description>&lt;P&gt;How did you get this working? If you don't mind, can you share a C# sample?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 18:06:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25709#M13704</guid>
      <dc:creator>eggsarebad</dc:creator>
      <dc:date>2012-04-17T18:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25711#M13705</link>
      <description>&lt;P&gt;I haven't done this yet, but my plan is to write a class that extends GatewayRequest and submits the raw XML request. I will post code when I have done this so that others can use it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 18:09:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25711#M13705</guid>
      <dc:creator>cpoirier</dc:creator>
      <dc:date>2012-04-17T18:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25715#M13707</link>
      <description>&lt;P&gt;I found a solution using System.Reflection. I downloaded .Net Reflector and found the hidden mothod names inside the GatewayRequest class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then found a hidden method named "SetApiAction". This internal method takes the&amp;nbsp;RequestAction Enum as a parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the VB.net code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Decalre your CaptureRequest class&lt;/P&gt;&lt;P&gt;Dim auth As CaptureRequest = New AuthorizeNet.CaptureRequest(ord.OrderTotal, ord.ResponseTransactionID, ord.ResponseAuthorizationCode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Modify the SDK using System.Reflection, so you can make a prior_auth_capture request&lt;/P&gt;&lt;P&gt;Dim mi As MethodInfo = GetType(CaptureRequest).GetMethod("SetApiAction", BindingFlags.NonPublic Or BindingFlags.Instance)&lt;BR /&gt;mi.Invoke(auth, New Object() {RequestAction.PriorAuthCapture})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if it works for you!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 19:11:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25715#M13707</guid>
      <dc:creator>eggsarebad</dc:creator>
      <dc:date>2012-04-17T19:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25719#M13709</link>
      <description>&lt;P&gt;C# SDKs have two different download, dll or source. Source on the left, dll(binary) on the right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 20:24:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25719#M13709</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-17T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Authorization Capture using C# SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25721#M13710</link>
      <description>&lt;P&gt;Thanks for the heads-up on the source download&amp;nbsp;&lt;A target="_self" href="https://community.developer.cybersource.com/../user/viewprofilepage/user-id/1353"&gt;&lt;FONT color="#000000"&gt;RaynorC1emen7&lt;/FONT&gt;&lt;/A&gt;&lt;FONT&gt;, I didn't notice that those were two separate links. I downloaded the source and added a PriorAuthCaptureRequest class in AuthorizeNET/AIM/Requests/ (I just copied and modified the CaptureRequest class. Here is the source:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;SPAN&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;&lt;BR /&gt;namespace AuthorizeNet {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// A request representing a PriorAuthCaptureRequest - the final transfer of funds that happens after an AuthorizationRequest.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class PriorAuthCaptureRequest:GatewayRequest {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Initializes a new instance of the &amp;lt;see cref="PriorAuthCaptureRequest"/&amp;gt; class.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name="amount"&amp;gt;The amount.&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name="transactionId"&amp;gt;The transaction id.&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name="authCode"&amp;gt;The auth code.&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public PriorAuthCaptureRequest(decimal amount, string transactionId, string authCode)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.SetApiAction(RequestAction.PriorAuthCapture);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Queue(ApiFields.Amount, amount.ToString());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Queue(ApiFields.TransactionID, transactionId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Queue(ApiFields.AuthorizationCode, authCode);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 23:20:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Prior-Authorization-Capture-using-C-SDK/m-p/25721#M13710</guid>
      <dc:creator>cpoirier</dc:creator>
      <dc:date>2012-04-17T23:20:11Z</dc:date>
    </item>
  </channel>
</rss>

